about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-05-24 21:20:57 +0000
committerbors <bors@rust-lang.org>2022-05-24 21:20:57 +0000
commit67a089134de7ecad7b8f55af10a6d0c76f9b6146 (patch)
treeba817493bc8cc424c18f0561adc96d5e365fcf25 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
parentc41c410a90cd97d3e82b67375f76c161f8c280dd (diff)
parent04297de2ed5f9e822fc4bf79e24556a68df56dce (diff)
downloadrust-67a089134de7ecad7b8f55af10a6d0c76f9b6146.tar.gz
rust-67a089134de7ecad7b8f55af10a6d0c76f9b6146.zip
Auto merge of #8880 - hellow554:rustfix_update, r=Manishearth
Add some testcases for recent rustfix update

changelog: none

This adds a testcase for a bugfix that has been fixed by https://github.com/rust-lang/rustfix/tree/v0.6.1

`rustfix` is pulled in by `compiletest_rs`. So to test that the correct rustfix version is used, I added one (and a half) testcase.

I tried to add a testcase for #8734 as well, but interesting enough the rustfix is wrong:

```diff
 fn issue8734() {
     let _ = [0u8, 1, 2, 3]
         .into_iter()
-        .and_then(|n| match n {
+        .flat_map(|n| match n {
+            1 => [n
+                .saturating_add(1)
             1 => [n
                 .saturating_add(1)
                 .saturating_add(1)
                 .saturating_add(1)
                 .saturating_add(1)
                 .saturating_add(1)
                 .saturating_add(1)
                 .saturating_add(1)
                 .saturating_add(1)],
             n => [n],
         });
 }
```

this needs some investigation and then this testcase needs to be enabled by commenting it out

closes #8878
related to #8734
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions