Remove import_resolutions
It's cheaper to re-query this info anyway
This commit is contained in:
parent
031bc86829
commit
82c088137a
@ -32,7 +32,6 @@ pub(crate) struct ItemMap {
|
||||
#[derive(Debug, Default, PartialEq, Eq, Clone)]
|
||||
pub(crate) struct ModuleScope {
|
||||
pub(crate) items: FxHashMap<SmolStr, Resolution>,
|
||||
pub(crate) import_resolutions: FxHashMap<LocalSyntaxPtr, DefId>,
|
||||
}
|
||||
|
||||
/// A set of items and imports declared inside a module, without relation to
|
||||
@ -382,10 +381,6 @@ fn resolve_import(&mut self, module_id: ModuleId, import: &Path) {
|
||||
},
|
||||
};
|
||||
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user