Skip to content

Commit fceb3d4

Browse files
authored
Rollup merge of #109678 - compiler-errors:dont-shadow-in-incremental_verify_ich_failed, r=Nilstrieb
Don't shadow the `dep_node` var in `incremental_verify_ich_failed` It's better to debug print `DepNode` instead of `ErrorGuaranteed` one line below :^) fixes #109676
2 parents c1ed118 + f738b44 commit fceb3d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_query_system/src/query/plumbing.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,7 @@ fn incremental_verify_ich_failed<Tcx>(
703703
};
704704

705705
let dep_node = tcx.dep_graph().data().unwrap().prev_node_of(prev_index);
706-
707-
let dep_node = tcx.sess().emit_err(crate::error::IncrementCompilation {
706+
tcx.sess().emit_err(crate::error::IncrementCompilation {
708707
run_cmd,
709708
dep_node: format!("{dep_node:?}"),
710709
});

0 commit comments

Comments
 (0)