Skip to content

Commit

Permalink
Evaluate output_filenames before one of its dependencies gets stolen
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jan 23, 2023
1 parent 261bbd7 commit d924a8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_ast_lowering/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ fn compute_hir_hash(

pub fn lower_to_hir(tcx: TyCtxt<'_>, (): ()) -> hir::Crate<'_> {
let sess = tcx.sess;
tcx.ensure().output_filenames(());
let (mut resolver, krate) = tcx.resolver_for_lowering(()).steal();

let ast_index = index_crate(&resolver.node_id_to_def_id, &krate);
Expand Down

0 comments on commit d924a8c

Please sign in to comment.