about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-10-20 15:51:46 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-10-21 07:08:53 +0000
commitdd08dd42e52af9677c3fcf83477d9693883cb221 (patch)
tree0cac2eae9163239ad6b32d116ed39199bb4f3e15 /compiler/rustc_mir_transform/src
parenta845bac6ba434483b483c0561011227c1eff9daf (diff)
downloadrust-dd08dd42e52af9677c3fcf83477d9693883cb221.tar.gz
rust-dd08dd42e52af9677c3fcf83477d9693883cb221.zip
Expand comment on disappearing edge.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
-rw-r--r--compiler/rustc_mir_transform/src/jump_threading.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/jump_threading.rs b/compiler/rustc_mir_transform/src/jump_threading.rs
index 83af640f777..7b918be4474 100644
--- a/compiler/rustc_mir_transform/src/jump_threading.rs
+++ b/compiler/rustc_mir_transform/src/jump_threading.rs
@@ -645,7 +645,7 @@ impl OpportunitySet {
             debug!(?current, ?succ);
 
             // `succ` must be a successor of `current`. If it is not, this means this TO is not
-            // satisfiable, so we bail out.
+            // satisfiable and a previous TO erased this edge, so we bail out.
             if basic_blocks[current].terminator().successors().find(|s| *s == succ).is_none() {
                 debug!("impossible");
                 return;