diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_analysis/src/descriptors/module/nameres.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crates/ra_analysis/src/descriptors/module/nameres.rs b/crates/ra_analysis/src/descriptors/module/nameres.rs index c5bf467ca..d69cc6e4d 100644 --- a/crates/ra_analysis/src/descriptors/module/nameres.rs +++ b/crates/ra_analysis/src/descriptors/module/nameres.rs | |||
@@ -32,7 +32,6 @@ pub(crate) struct ItemMap { | |||
32 | #[derive(Debug, Default, PartialEq, Eq, Clone)] | 32 | #[derive(Debug, Default, PartialEq, Eq, Clone)] |
33 | pub(crate) struct ModuleScope { | 33 | pub(crate) struct ModuleScope { |
34 | pub(crate) items: FxHashMap<SmolStr, Resolution>, | 34 | pub(crate) items: FxHashMap<SmolStr, Resolution>, |
35 | pub(crate) import_resolutions: FxHashMap<LocalSyntaxPtr, DefId>, | ||
36 | } | 35 | } |
37 | 36 | ||
38 | /// A set of items and imports declared inside a module, without relation to | 37 | /// A set of items and imports declared inside a module, without relation to |
@@ -382,10 +381,6 @@ where | |||
382 | }, | 381 | }, |
383 | }; | 382 | }; |
384 | 383 | ||
385 | self.update(module_id, |items| { | ||
386 | items.import_resolutions.insert(*ptr, def_id); | ||
387 | }); | ||
388 | |||
389 | if !is_last { | 384 | if !is_last { |
390 | curr = match self.db.id_maps().def_loc(def_id) { | 385 | curr = match self.db.id_maps().def_loc(def_id) { |
391 | DefLoc::Module { id, .. } => id, | 386 | DefLoc::Module { id, .. } => id, |