diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-03-28 07:01:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-28 07:01:11 +0200 |
| commit | fceb3d49f4c1eab9a6768730b4f653715a4bc6a3 (patch) | |
| tree | 94c96ea67738542ed708da3868d8abc9512f0794 | |
| parent | c1ed1180f75577ecfcf849a0d89117ab704c4399 (diff) | |
| parent | f738b44c6d0b7401fb12baa335e09c7392e15ebb (diff) | |
| download | rust-fceb3d49f4c1eab9a6768730b4f653715a4bc6a3.tar.gz rust-fceb3d49f4c1eab9a6768730b4f653715a4bc6a3.zip | |
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
| -rw-r--r-- | compiler/rustc_query_system/src/query/plumbing.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_query_system/src/query/plumbing.rs b/compiler/rustc_query_system/src/query/plumbing.rs index 0326869826b..519ea5ffed1 100644 --- a/compiler/rustc_query_system/src/query/plumbing.rs +++ b/compiler/rustc_query_system/src/query/plumbing.rs @@ -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:?}"), }); |
