We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ItemLowerer
1 parent 0c0b2cb commit 7c62e78Copy full SHA for 7c62e78
compiler/rustc_ast_lowering/src/lib.rs
@@ -444,14 +444,14 @@ pub fn lower_to_hir(tcx: TyCtxt<'_>, (): ()) -> hir::Crate<'_> {
444
tcx.definitions_untracked().def_index_count(),
445
);
446
447
+ let mut lowerer = item::ItemLowerer {
448
+ tcx,
449
+ resolver: &mut resolver,
450
+ ast_index: &ast_index,
451
+ owners: &mut owners,
452
+ };
453
for def_id in ast_index.indices() {
- item::ItemLowerer {
- tcx,
- resolver: &mut resolver,
- ast_index: &ast_index,
- owners: &mut owners,
- }
454
- .lower_node(def_id);
+ lowerer.lower_node(def_id);
455
}
456
457
drop(ast_index);
0 commit comments