diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-10 15:01:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-10 15:01:43 +0100 |
| commit | b66e123677ac5f4fade3bb67888f8f40f0bb28ec (patch) | |
| tree | 623f393adada7b987da150cc2d4e97ab7c25132e /src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff | |
| parent | 7e1857db1eb948353812a3d3a688e4a5cb58defa (diff) | |
| parent | 9fb8da8f8ff1a0b2c237c691fee58b6348811b86 (diff) | |
| download | rust-b66e123677ac5f4fade3bb67888f8f40f0bb28ec.tar.gz rust-b66e123677ac5f4fade3bb67888f8f40f0bb28ec.zip | |
Rollup merge of #105234 - JakobDegen:unneeded-field, r=oli-obk
Remove unneeded field from `SwitchTargets` This had a fixme already. The only change in behavior is that the mir dumps now no longer contains labels for the types of the integers on the edges of a switchint: Before:  After:  I don't think that's a problem though. The information is still available to a user that really cares by checking the type of `_2`, so it honestly feels like a bit of an improvement to me. r? mir
Diffstat (limited to 'src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff')
| -rw-r--r-- | src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff b/src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff index 049bbeac867..9bc7060e958 100644 --- a/src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff +++ b/src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff @@ -38,7 +38,7 @@ _3 = Lt(move _4, move _5); // scope 0 at $DIR/lower_array_len.rs:+1:8: +1:27 StorageDead(_5); // scope 0 at $DIR/lower_array_len.rs:+1:26: +1:27 StorageDead(_4); // scope 0 at $DIR/lower_array_len.rs:+1:26: +1:27 - switchInt(move _3) -> [false: bb4, otherwise: bb2]; // scope 0 at $DIR/lower_array_len.rs:+1:8: +1:27 + switchInt(move _3) -> [0: bb4, otherwise: bb2]; // scope 0 at $DIR/lower_array_len.rs:+1:8: +1:27 } bb2: { |
