]> git.lizzy.rs Git - rust.git/commit
Fix change detection in CfgSimplifier::collapse_goto_chain
authorTomasz Miąsko <tomasz.miasko@gmail.com>
Mon, 3 Aug 2020 00:00:00 +0000 (00:00 +0000)
committerTomasz Miąsko <tomasz.miasko@gmail.com>
Sun, 2 Aug 2020 22:39:53 +0000 (00:39 +0200)
commit82651db9b2f6ecb16c773e8afa301c862118bb82
treea73ae31625a7d08dd6dba35defbd4801d7b1cef7
parent19cefa68640843956eedd86227ddc1d35dbc6754
Fix change detection in CfgSimplifier::collapse_goto_chain

Check that the old target is different from the new collapsed one,
before concluding that anything changed.
src/librustc_mir/transform/simplify.rs
src/test/ui/issues/issue-75704.rs [new file with mode: 0644]