Skip to content

Commit

Permalink
Rollup merge of rust-lang#42728 - jseyfried:fix_resolve_perf, r=nrc
Browse files Browse the repository at this point in the history
resolve: fix perf bug

Fixes rust-lang#42544.
r? @nrc
  • Loading branch information
frewsxcv committed Jun 20, 2017
2 parents dbe16e0 + 3c1af32 commit d92edac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/librustc_resolve/build_reduced_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,10 @@ impl<'a> Resolver<'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> {
Expand Down

0 comments on commit d92edac

Please sign in to comment.