Skip to content

Commit c24ab4c

Browse files
formatting
1 parent ded9cc3 commit c24ab4c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

compiler/rustc_resolve/src/build_reduced_graph.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,9 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
171171
}
172172

173173
pub(crate) fn get_macro_by_def_id(&self, def_id: DefId) -> &'ra MacroData {
174+
// Local macros are always compiled.
174175
match def_id.as_local() {
175-
Some(local_def_id) => {
176-
// local macros are always compiled.
177-
self.local_macro_map[&local_def_id]
178-
}
176+
Some(local_def_id) => self.local_macro_map[&local_def_id],
179177
None => *self.extern_macro_map.borrow_mut().entry(def_id).or_insert_with(|| {
180178
let loaded_macro = self.cstore().load_macro_untracked(def_id, self.tcx);
181179
let macro_data = match loaded_macro {

0 commit comments

Comments
 (0)