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
This commit is contained in:
Matthias Krüger 2023-03-28 07:01:11 +02:00 committed by GitHub
commit fceb3d49f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -703,8 +703,7 @@ fn incremental_verify_ich_failed<Tcx>(
};
let dep_node = tcx.dep_graph().data().unwrap().prev_node_of(prev_index);
let dep_node = tcx.sess().emit_err(crate::error::IncrementCompilation {
tcx.sess().emit_err(crate::error::IncrementCompilation {
run_cmd,
dep_node: format!("{dep_node:?}"),
});