diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-08-18 14:26:34 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-08-18 16:07:33 -0700 |
| commit | 99cb0c6bc399fb94a0ddde7e9b38e9c00d523bad (patch) | |
| tree | bb59a5f90f8a4a26f498d6748aec34d14a01d052 /tests/mir-opt/separate_const_switch.identity.JumpThreading.diff | |
| parent | 249a36ffbd577fc76153b7ad4cafd33607ee4ddc (diff) | |
| download | rust-99cb0c6bc399fb94a0ddde7e9b38e9c00d523bad.tar.gz rust-99cb0c6bc399fb94a0ddde7e9b38e9c00d523bad.zip | |
Bless *all* the mir-opt tests
Diffstat (limited to 'tests/mir-opt/separate_const_switch.identity.JumpThreading.diff')
| -rw-r--r-- | tests/mir-opt/separate_const_switch.identity.JumpThreading.diff | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/mir-opt/separate_const_switch.identity.JumpThreading.diff b/tests/mir-opt/separate_const_switch.identity.JumpThreading.diff index 8dd904c7d7b..ce9d812701a 100644 --- a/tests/mir-opt/separate_const_switch.identity.JumpThreading.diff +++ b/tests/mir-opt/separate_const_switch.identity.JumpThreading.diff @@ -50,16 +50,16 @@ } bb2: { - _5 = ((_2 as Continue).0: i32); - _0 = Result::<i32, i32>::Ok(_5); + _5 = copy ((_2 as Continue).0: i32); + _0 = Result::<i32, i32>::Ok(copy _5); StorageDead(_2); return; } bb3: { - _4 = ((_2 as Break).0: std::result::Result<std::convert::Infallible, i32>); - _10 = ((_4 as Err).0: i32); - _0 = Result::<i32, i32>::Err(_10); + _4 = copy ((_2 as Break).0: std::result::Result<std::convert::Infallible, i32>); + _10 = copy ((_4 as Err).0: i32); + _0 = Result::<i32, i32>::Err(copy _10); StorageDead(_2); return; } @@ -74,9 +74,9 @@ } bb5: { - _8 = ((_1 as Err).0: i32); + _8 = copy ((_1 as Err).0: i32); StorageLive(_9); - _9 = Result::<Infallible, i32>::Err(_8); + _9 = Result::<Infallible, i32>::Err(copy _8); _2 = ControlFlow::<Result<Infallible, i32>, i32>::Break(move _9); StorageDead(_9); - goto -> bb4; @@ -84,8 +84,8 @@ } bb6: { - _7 = ((_1 as Ok).0: i32); - _2 = ControlFlow::<Result<Infallible, i32>, i32>::Continue(_7); + _7 = copy ((_1 as Ok).0: i32); + _2 = ControlFlow::<Result<Infallible, i32>, i32>::Continue(copy _7); goto -> bb4; + } + |
