Skip to content

Commit 0f9fdba

Browse files
committed
Bump mir-opt-level from 3 to 4 in tests
1 parent 38ec6be commit 0f9fdba

29 files changed

+31
-31
lines changed

src/test/codegen/sanitizer-no-sanitize-inlining.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// needs-sanitizer-address
55
// needs-sanitizer-leak
66
// revisions: ASAN LSAN
7-
//[ASAN] compile-flags: -Zsanitizer=address -C opt-level=3 -Z mir-opt-level=3
8-
//[LSAN] compile-flags: -Zsanitizer=leak -C opt-level=3 -Z mir-opt-level=3
7+
//[ASAN] compile-flags: -Zsanitizer=address -C opt-level=3 -Z mir-opt-level=4
8+
//[LSAN] compile-flags: -Zsanitizer=leak -C opt-level=3 -Z mir-opt-level=4
99

1010
#![crate_type="lib"]
1111
#![feature(no_sanitize)]

src/test/mir-opt/const_prop/boolean_identities.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -O -Zmir-opt-level=3
1+
// compile-flags: -O -Zmir-opt-level=4
22

33
// EMIT_MIR boolean_identities.test.ConstProp.diff
44
pub fn test(x: bool, y: bool) -> bool {

src/test/mir-opt/const_prop/mult_by_zero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -O -Zmir-opt-level=3
1+
// compile-flags: -O -Zmir-opt-level=4
22

33
// EMIT_MIR mult_by_zero.test.ConstProp.diff
44
fn test(x : i32) -> i32 {

src/test/mir-opt/early_otherwise_branch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z mir-opt-level=3
1+
// compile-flags: -Z mir-opt-level=4
22
// EMIT_MIR early_otherwise_branch.opt1.EarlyOtherwiseBranch.diff
33
fn opt1(x: Option<u32>, y: Option<u32>) -> u32 {
44
match (x, y) {

src/test/mir-opt/early_otherwise_branch_3_element_tuple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z mir-opt-level=3
1+
// compile-flags: -Z mir-opt-level=4
22

33
// EMIT_MIR early_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff
44
fn opt1(x: Option<u32>, y: Option<u32>, z: Option<u32>) -> u32 {

src/test/mir-opt/early_otherwise_branch_68867.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ignore-tidy-linelength
2-
// compile-flags: -Z mir-opt-level=3 -Zunsound-mir-opts
2+
// compile-flags: -Z mir-opt-level=4 -Zunsound-mir-opts
33

44
// example from #68867
55
type CSSFloat = f32;

src/test/mir-opt/early_otherwise_branch_noopt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z mir-opt-level=3
1+
// compile-flags: -Z mir-opt-level=4
22

33
// must not optimize as it does not follow the pattern of
44
// left and right hand side being the same variant

src/test/mir-opt/inline/inline-into-box-place.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ignore-endian-big
22
// ignore-wasm32-bare compiled with panic=abort by default
3-
// compile-flags: -Z mir-opt-level=3
3+
// compile-flags: -Z mir-opt-level=4
44
// EMIT_MIR_FOR_EACH_BIT_WIDTH
55
#![feature(box_syntax)]
66
// EMIT_MIR inline_into_box_place.main.Inline.diff

src/test/mir-opt/inline/inline-trait-method_2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z span_free_formats -Z mir-opt-level=3
1+
// compile-flags: -Z span_free_formats -Z mir-opt-level=4
22

33
// EMIT_MIR inline_trait_method_2.test2.Inline.after.mir
44
fn test2(x: &dyn X) -> bool {

src/test/mir-opt/multiple_return_terminators.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z mir-opt-level=3
1+
// compile-flags: -Z mir-opt-level=4
22
// EMIT_MIR multiple_return_terminators.test.MultipleReturnTerminators.diff
33

44
fn test(x: bool) {

0 commit comments

Comments
 (0)