diff options
Diffstat (limited to 'crates/ra_hir_def/src/item_scope.rs')
-rw-r--r-- | crates/ra_hir_def/src/item_scope.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_hir_def/src/item_scope.rs b/crates/ra_hir_def/src/item_scope.rs index 71afdb235..87c50b34f 100644 --- a/crates/ra_hir_def/src/item_scope.rs +++ b/crates/ra_hir_def/src/item_scope.rs | |||
@@ -183,7 +183,7 @@ impl PerNs { | |||
183 | } | 183 | } |
184 | } | 184 | } |
185 | 185 | ||
186 | #[derive(Clone, Copy, PartialEq, Eq)] | 186 | #[derive(Clone, Copy, PartialEq, Eq, Debug, Hash)] |
187 | pub enum ItemInNs { | 187 | pub enum ItemInNs { |
188 | Types(ModuleDefId), | 188 | Types(ModuleDefId), |
189 | Values(ModuleDefId), | 189 | Values(ModuleDefId), |
@@ -195,13 +195,13 @@ impl ItemInNs { | |||
195 | match self { | 195 | match self { |
196 | ItemInNs::Types(def) => { | 196 | ItemInNs::Types(def) => { |
197 | per_ns.types.filter(|(other_def, _)| *other_def == def).map(|(_, vis)| vis) | 197 | per_ns.types.filter(|(other_def, _)| *other_def == def).map(|(_, vis)| vis) |
198 | }, | 198 | } |
199 | ItemInNs::Values(def) => { | 199 | ItemInNs::Values(def) => { |
200 | per_ns.values.filter(|(other_def, _)| *other_def == def).map(|(_, vis)| vis) | 200 | per_ns.values.filter(|(other_def, _)| *other_def == def).map(|(_, vis)| vis) |
201 | }, | 201 | } |
202 | ItemInNs::Macros(def) => { | 202 | ItemInNs::Macros(def) => { |
203 | per_ns.macros.filter(|(other_def, _)| *other_def == def).map(|(_, vis)| vis) | 203 | per_ns.macros.filter(|(other_def, _)| *other_def == def).map(|(_, vis)| vis) |
204 | }, | 204 | } |
205 | } | 205 | } |
206 | } | 206 | } |
207 | 207 | ||