Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Bump mir-opt-level up 2 to 3 and 3 to 4 #681

Merged
merged 1 commit into from
Mar 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fixed/67019.sh
Original file line number Diff line number Diff line change
@@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion fixed/68296.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion fixed/68841.sh
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion fixed/71793.sh
Original file line number Diff line number Diff line change
@@ -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: std::future::Future>(_: F) {}
fn main() {
Expand Down
2 changes: 1 addition & 1 deletion fixed/72181.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion fixed/72285.sh
Original file line number Diff line number Diff line change
@@ -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());
Expand Down
2 changes: 1 addition & 1 deletion fixed/72372.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ fn main() {

EOF

rustc -Zmir-opt-level=2 72372.rs
rustc -Zmir-opt-level=3 72372.rs
2 changes: 1 addition & 1 deletion fixed/72679.sh
Original file line number Diff line number Diff line change
@@ -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))]

Expand Down
2 changes: 1 addition & 1 deletion fixed/73327.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

rustc -Z mir-opt-level=2 - << EOF
rustc -Z mir-opt-level=3 - << EOF

fn load<R>(_r: R) {}

Expand Down
2 changes: 1 addition & 1 deletion fixed/75053.sh
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion fixed/75299.sh
Original file line number Diff line number Diff line change
@@ -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)]

Expand Down
4 changes: 2 additions & 2 deletions fixed/76375.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion fixed/77911.sh
Original file line number Diff line number Diff line change
@@ -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};

Expand Down
2 changes: 1 addition & 1 deletion fixed/78442.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion fixed/80060.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

rustc -Z mir-opt-level=2 -Z instrument-coverage - <<EOF
rustc -Z mir-opt-level=3 -Z instrument-coverage - <<EOF
pub fn main() {
let c = || {};
c();
Expand Down
2 changes: 1 addition & 1 deletion ices/73021.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

rustc --emit mir -Z mir-opt-level=2 - <<EOF
rustc --emit mir -Z mir-opt-level=3 - <<EOF
// build-pass
#![allow(dead_code)]
trait Foo {
Expand Down
2 changes: 1 addition & 1 deletion ices/81403.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

rustc --emit=mir -Zmir-opt-level=2 - <<'EOF'
rustc --emit=mir -Zmir-opt-level=3 - <<'EOF'
// build-pass
pub trait Foo<'a> {
type Bar;
Expand Down