diff options
Diffstat (limited to 'crates/ra_hir_def/src/nameres')
-rw-r--r-- | crates/ra_hir_def/src/nameres/collector.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs index 0f3319f30..1b39af61e 100644 --- a/crates/ra_hir_def/src/nameres/collector.rs +++ b/crates/ra_hir_def/src/nameres/collector.rs | |||
@@ -772,17 +772,17 @@ where | |||
772 | PerNs::values(def.into()) | 772 | PerNs::values(def.into()) |
773 | } | 773 | } |
774 | raw::DefKind::Struct(ast_id) => { | 774 | raw::DefKind::Struct(ast_id) => { |
775 | let def = StructLoc { container: module, ast_id: AstId::new(self.file_id, ast_id) } | 775 | let def = StructLoc { container, ast_id: AstId::new(self.file_id, ast_id) } |
776 | .intern(self.def_collector.db); | 776 | .intern(self.def_collector.db); |
777 | PerNs::both(def.into(), def.into()) | 777 | PerNs::both(def.into(), def.into()) |
778 | } | 778 | } |
779 | raw::DefKind::Union(ast_id) => { | 779 | raw::DefKind::Union(ast_id) => { |
780 | let def = UnionLoc { container: module, ast_id: AstId::new(self.file_id, ast_id) } | 780 | let def = UnionLoc { container, ast_id: AstId::new(self.file_id, ast_id) } |
781 | .intern(self.def_collector.db); | 781 | .intern(self.def_collector.db); |
782 | PerNs::both(def.into(), def.into()) | 782 | PerNs::both(def.into(), def.into()) |
783 | } | 783 | } |
784 | raw::DefKind::Enum(ast_id) => { | 784 | raw::DefKind::Enum(ast_id) => { |
785 | let def = EnumLoc { container: module, ast_id: AstId::new(self.file_id, ast_id) } | 785 | let def = EnumLoc { container, ast_id: AstId::new(self.file_id, ast_id) } |
786 | .intern(self.def_collector.db); | 786 | .intern(self.def_collector.db); |
787 | PerNs::types(def.into()) | 787 | PerNs::types(def.into()) |
788 | } | 788 | } |