mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
resolve: fix perf bug.
This commit is contained in:
@@ -523,7 +523,10 @@ pub fn get_module(&mut self, def_id: DefId) -> Module<'a> {
|
||||
};
|
||||
|
||||
let kind = ModuleKind::Def(Def::Mod(def_id), name);
|
||||
self.arenas.alloc_module(ModuleData::new(parent, kind, def_id, Mark::root(), DUMMY_SP))
|
||||
let module =
|
||||
self.arenas.alloc_module(ModuleData::new(parent, kind, def_id, Mark::root(), DUMMY_SP));
|
||||
self.extern_module_map.insert((def_id, macros_only), module);
|
||||
module
|
||||
}
|
||||
|
||||
pub fn macro_def_scope(&mut self, expansion: Mark) -> Module<'a> {
|
||||
|
||||
Reference in New Issue
Block a user