diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-01-23 12:00:03 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-01-23 14:22:33 +0000 |
| commit | d924a8ca59bb12b16923dbda594cb7048230f0ff (patch) | |
| tree | 911d78a8f13db78a11df053ed7ee4ca6c5c94fa3 | |
| parent | 261bbd7dbaaeb3a4f3d25610b6f93aac874bd910 (diff) | |
| download | rust-d924a8ca59bb12b16923dbda594cb7048230f0ff.tar.gz rust-d924a8ca59bb12b16923dbda594cb7048230f0ff.zip | |
Evaluate `output_filenames` before one of its dependencies gets stolen
| -rw-r--r-- | compiler/rustc_ast_lowering/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index bc6d2cf12c7..01727625064 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -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); |
