test opt-level 2

This commit is contained in:
Ralf Jung 2020-09-07 10:35:39 +02:00
parent 210f18d6c7
commit d9bc19a7b0
2 changed files with 4 additions and 2 deletions

4
ci.sh
View File

@ -25,8 +25,8 @@ function run_tests {
./miri test --locked
if ! [ -n "${MIRI_TEST_TARGET+exists}" ]; then
# Only for host architecture: tests with MIR optimizations
# FIXME: only testing level 1 because of <https://github.com/rust-lang/rust/issues/73223>.
MIRI_TEST_FLAGS="-Z mir-opt-level=1" ./miri test --locked
# FIXME: only testing level 2 because of <https://github.com/rust-lang/rust/issues/76432>.
MIRI_TEST_FLAGS="-Z mir-opt-level=2" ./miri test --locked
fi
# "miri test" has built the sysroot for us, now this should pass without
# any interactive questions.

View File

@ -1,3 +1,5 @@
// compile-flags: -Zmir-opt-level=0
// FIXME: Using opt-level 2 here makes the test take forever (https://github.com/rust-lang/rust/issues/76433).
#![feature(stmt_expr_attributes)]
use std::fmt::Debug;