Skip to content

Commit 3377309

Browse files
committed
Fix another UI test that needs its unused variables preserved
1 parent fd59fa1 commit 3377309

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/ui/extern/extern-types-field-offset.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
//@ check-run-results
33
//@ exec-env:RUST_BACKTRACE=0
44
//@ normalize-stderr-test: "(core/src/panicking\.rs):[0-9]+:[0-9]+" -> "$1:$$LINE:$$COL"
5+
//@ compile-flags: -Z mir-opt-level=0
6+
// (Don't optimize out the unused locals, so that we actually compute the offsets.)
7+
// FIXME: As part of fixing #127336, re-enable the normal mir-opts.
58
#![feature(extern_types)]
69

710
extern "C" {

0 commit comments

Comments
 (0)