Skip to content

Commit d924a8c

Browse files
committed
Evaluate output_filenames before one of its dependencies gets stolen
1 parent 261bbd7 commit d924a8c

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+1
-0
lines changed

compiler/rustc_ast_lowering/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ fn compute_hir_hash(
416416

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

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

0 commit comments

Comments
 (0)