aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-11-21 13:02:34 +0000
committerAleksey Kladov <[email protected]>2018-11-21 13:02:34 +0000
commit82c088137abe2ed834433634f0f7641a601a21fd (patch)
tree29951d3075c0c2c76489c96351fc7a44d8d32724 /crates
parent031bc868293539714157e3d93cc338b011f5661d (diff)
Remove import_resolutions
It's cheaper to re-query this info anyway
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_analysis/src/descriptors/module/nameres.rs5
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)]
33pub(crate) struct ModuleScope { 33pub(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,