diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-29 13:48:40 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-29 13:48:40 +0000 |
commit | 01136b02349a43fa56f8d91c1a2bf82f6af8f308 (patch) | |
tree | a522ad3465b276113ce20582656d39a481eb9fd2 /crates/ra_hir_def/src | |
parent | dc48f89581843248660ceb755bb20469ab6ac0c9 (diff) | |
parent | 8f36f768e1ca2654da4c22983fe3c8bc3ad059a9 (diff) |
Merge #2673
2673: Don't add non-impl/trait containers to scope r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r-- | crates/ra_hir_def/src/resolver.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/resolver.rs b/crates/ra_hir_def/src/resolver.rs index 43dc751d9..5d16dd087 100644 --- a/crates/ra_hir_def/src/resolver.rs +++ b/crates/ra_hir_def/src/resolver.rs | |||
@@ -644,7 +644,7 @@ impl HasResolver for ContainerId { | |||
644 | fn resolver(self, db: &impl DefDatabase) -> Resolver { | 644 | fn resolver(self, db: &impl DefDatabase) -> Resolver { |
645 | match self { | 645 | match self { |
646 | ContainerId::ModuleId(it) => it.resolver(db), | 646 | ContainerId::ModuleId(it) => it.resolver(db), |
647 | ContainerId::DefWithBodyId(it) => it.resolver(db), | 647 | ContainerId::DefWithBodyId(it) => it.module(db).resolver(db), |
648 | } | 648 | } |
649 | } | 649 | } |
650 | } | 650 | } |