Skip to content

Commit

Permalink
Fix another UI test that needs its unused variables preserved
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmcm committed Jul 4, 2024
1 parent 99064f3 commit 294efde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ui/extern/extern-types-field-offset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
//@ check-run-results
//@ exec-env:RUST_BACKTRACE=0
//@ normalize-stderr-test: "(core/src/panicking\.rs):[0-9]+:[0-9]+" -> "$1:$$LINE:$$COL"
//@ compile-flags: -Z mir-opt-level=0
// (Don't optimize out the unused locals, so that we actually compute the offsets.)
// FIXME: As part of fixing #127336, re-enable the normal mir-opts.
#![feature(extern_types)]

extern "C" {
Expand Down

0 comments on commit 294efde

Please sign in to comment.