Skip to content

Commit 8c71011

Browse files
Disable MIR optimization for alignment codegen tests
NRVO optimizes away the locals whose alignment is tested. I don't think this affects the purpose of the test.
1 parent b19d5c0 commit 8c71011

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/codegen/align-enum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -C no-prepopulate-passes
1+
// compile-flags: -C no-prepopulate-passes -Z mir-opt-level=0
22
// ignore-tidy-linelength
33

44
#![crate_type = "lib"]

src/test/codegen/align-struct.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -C no-prepopulate-passes
1+
// compile-flags: -C no-prepopulate-passes -Z mir-opt-level=0
22
// ignore-tidy-linelength
33

44
#![crate_type = "lib"]

0 commit comments

Comments
 (0)