Explain &Arc.

This commit is contained in:
Camille GILLOT 2022-02-01 18:46:04 +01:00
parent 4435dfec0f
commit e1a72c29aa

View File

@ -1681,6 +1681,10 @@ rustc_queries! {
desc { "optimization level used by backend" }
}
/// Return the filenames where output artefacts shall be stored.
///
/// This query returns an `&Arc` because codegen backends need the value even after the `TyCtxt`
/// has been destroyed.
query output_filenames(_: ()) -> &'tcx Arc<OutputFilenames> {
eval_always
desc { "output_filenames" }