From 82c088137abe2ed834433634f0f7641a601a21fd Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 21 Nov 2018 16:02:34 +0300 Subject: Remove import_resolutions It's cheaper to re-query this info anyway --- crates/ra_analysis/src/descriptors/module/nameres.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'crates') 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 { #[derive(Debug, Default, PartialEq, Eq, Clone)] pub(crate) struct ModuleScope { pub(crate) items: FxHashMap, - pub(crate) import_resolutions: FxHashMap, } /// A set of items and imports declared inside a module, without relation to @@ -382,10 +381,6 @@ where }, }; - self.update(module_id, |items| { - items.import_resolutions.insert(*ptr, def_id); - }); - if !is_last { curr = match self.db.id_maps().def_loc(def_id) { DefLoc::Module { id, .. } => id, -- cgit v1.2.3