diff --git a/fixed/67019.sh b/fixed/67019.sh index 9e1df75e..50482efa 100755 --- a/fixed/67019.sh +++ b/fixed/67019.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc +nightly --edition 2018 -Z mir-opt-level=2 - << EOF +rustc +nightly --edition 2018 -Z mir-opt-level=3 - << EOF fn test(this: ((u8, u8),)) { assert!((this.0).1 == 0); } diff --git a/fixed/68296.sh b/fixed/68296.sh index 0034b028..0849473a 100644 --- a/fixed/68296.sh +++ b/fixed/68296.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc -Zmir-opt-level=2 - << END +rustc -Zmir-opt-level=3 - << END const FOO: *const u32 = { //~ ERROR any use of this value will cause an error let x = 42; &x diff --git a/fixed/68841.sh b/fixed/68841.sh index 2521d3d2..9fef4559 100644 --- a/fixed/68841.sh +++ b/fixed/68841.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc -Z mir-opt-level=2 --edition 2018 - << END +rustc -Z mir-opt-level=3 --edition 2018 - << END #![feature(async_closure)] use std::future::Future; diff --git a/fixed/71793.sh b/fixed/71793.sh index f3703f19..8c10ea18 100644 --- a/fixed/71793.sh +++ b/fixed/71793.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc +nightly --edition 2018 -Z mir-opt-level=2 - << EOF +rustc +nightly --edition 2018 -Z mir-opt-level=3 - << EOF pub async fn connect() {} pub fn block_on(_: F) {} fn main() { diff --git a/fixed/72181.sh b/fixed/72181.sh index 42801a8c..774adc09 100644 --- a/fixed/72181.sh +++ b/fixed/72181.sh @@ -19,4 +19,4 @@ fn main() { EOF -rustc -Zmir-opt-level=2 --emit=mir 72181.rs +rustc -Zmir-opt-level=3 --emit=mir 72181.rs diff --git a/fixed/72285.sh b/fixed/72285.sh index 3cbc3f78..f3202c40 100644 --- a/fixed/72285.sh +++ b/fixed/72285.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc -Z mir-opt-level=3 - << EOF +rustc -Z mir-opt-level=4 - << EOF fn main() { let i = (0..usize::max_value()).chain(0..10).skip(usize::max_value()); diff --git a/fixed/72372.sh b/fixed/72372.sh index 5cbfbead..a9d1ec73 100644 --- a/fixed/72372.sh +++ b/fixed/72372.sh @@ -8,4 +8,4 @@ fn main() { EOF -rustc -Zmir-opt-level=2 72372.rs +rustc -Zmir-opt-level=3 72372.rs diff --git a/fixed/72679.sh b/fixed/72679.sh index 76084bc6..998b4614 100644 --- a/fixed/72679.sh +++ b/fixed/72679.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc -Z mir-opt-level=2 - << EOF +rustc -Z mir-opt-level=3 - << EOF #![cfg_attr(const_fn, feature(const_fn))] diff --git a/fixed/73327.sh b/fixed/73327.sh index 8220afc9..543ba232 100644 --- a/fixed/73327.sh +++ b/fixed/73327.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc -Z mir-opt-level=2 - << EOF +rustc -Z mir-opt-level=3 - << EOF fn load(_r: R) {} diff --git a/fixed/75053.sh b/fixed/75053.sh index 3c9d58af..8a6e13d8 100644 --- a/fixed/75053.sh +++ b/fixed/75053.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc -Zmir-opt-level=2 - << EOF +rustc -Zmir-opt-level=3 - << EOF #![feature(type_alias_impl_trait)] use std::marker::PhantomData; diff --git a/fixed/75299.sh b/fixed/75299.sh index 388bbc3a..fccf7003 100644 --- a/fixed/75299.sh +++ b/fixed/75299.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc -Z mir-opt-level=3 - << EOF +rustc -Z mir-opt-level=4 - << EOF #![feature(const_generics, box_syntax)] #![allow(incomplete_features)] diff --git a/fixed/76375.sh b/fixed/76375.sh index e56c80aa..3b138892 100644 --- a/fixed/76375.sh +++ b/fixed/76375.sh @@ -29,5 +29,5 @@ pub async fn h() {} EOF -rustc --edition=2018 -Zmir-opt-level=2 -Zunsound-mir-opts x.rs -rustc --edition=2018 -Zmir-opt-level=2 y.rs --extern x -L. +rustc --edition=2018 -Zmir-opt-level=3 -Zunsound-mir-opts x.rs +rustc --edition=2018 -Zmir-opt-level=3 y.rs --extern x -L. diff --git a/fixed/77911.sh b/fixed/77911.sh index 5a31eb5f..9b608ff1 100644 --- a/fixed/77911.sh +++ b/fixed/77911.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc -Z mir-opt-level=2 - << EOF +rustc -Z mir-opt-level=3 - << EOF use std::fs::File; use std::io::{BufRead, BufReader}; diff --git a/fixed/78442.sh b/fixed/78442.sh index 4f0a2ee6..4eae1462 100644 --- a/fixed/78442.sh +++ b/fixed/78442.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc -Z mir-opt-level=2 - << EOF +rustc -Z mir-opt-level=3 - << EOF #![crate_type = "lib"] // Error won't happen if "bar" is not generic diff --git a/fixed/80060.sh b/fixed/80060.sh index f94a6175..ebc1aa2b 100644 --- a/fixed/80060.sh +++ b/fixed/80060.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc -Z mir-opt-level=2 -Z instrument-coverage - < { type Bar;