We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
dep_graph
1 parent c95dd55 commit d3de0c4Copy full SHA for d3de0c4
compiler/rustc_interface/src/queries.rs
@@ -318,10 +318,9 @@ impl<'tcx> Queries<'tcx> {
318
let sess = self.session().clone();
319
let codegen_backend = self.codegen_backend().clone();
320
321
- let dep_graph = self.dep_graph()?.peek().clone();
322
- let (crate_hash, prepare_outputs) = self
323
- .global_ctxt()?
324
- .enter(|tcx| (tcx.crate_hash(LOCAL_CRATE), tcx.output_filenames(()).clone()));
+ let (crate_hash, prepare_outputs, dep_graph) = self.global_ctxt()?.enter(|tcx| {
+ (tcx.crate_hash(LOCAL_CRATE), tcx.output_filenames(()).clone(), tcx.dep_graph.clone())
+ });
325
let ongoing_codegen = self.ongoing_codegen()?.take();
326
327
Ok(Linker {
0 commit comments