Skip to content

Commit

Permalink
Rollup merge of #109678 - compiler-errors:dont-shadow-in-incremental_…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
matthiaskrgr authored Mar 28, 2023
2 parents c1ed118 + f738b44 commit fceb3d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_query_system/src/query/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:?}"),
});
Expand Down

0 comments on commit fceb3d4

Please sign in to comment.