1
Fork 0

Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov

make `output_filenames` a real query

part of #105462

This may be a perf regression and is not obviously the right way forward. We may store this information in the resolver after freezing it for example.
This commit is contained in:
bors 2023-01-26 20:32:28 +00:00
commit d7948c843d
16 changed files with 119 additions and 47 deletions

View file

@ -1863,9 +1863,10 @@ rustc_queries! {
///
/// This query returns an `&Arc` because codegen backends need the value even after the `TyCtxt`
/// has been destroyed.
query output_filenames(_: ()) -> &'tcx Arc<OutputFilenames> {
query output_filenames(_: ()) -> Arc<OutputFilenames> {
feedable
desc { "getting output filenames" }
arena_cache
}
/// Do not call this query directly: invoke `normalize` instead.