Explain &Arc.
This commit is contained in:
parent
4435dfec0f
commit
e1a72c29aa
1 changed files with 4 additions and 0 deletions
|
@ -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" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue