Evaluate output_filenames before one of its dependencies gets stolen

This commit is contained in:
Oli Scherer 2023-01-23 12:00:03 +00:00
parent 261bbd7dba
commit d924a8ca59

View File

@ -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);