Skip to content

Commit

Permalink
Don't use -Zmiri-panic-on-unsupported (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin authored Oct 8, 2024
1 parent f014c7d commit eab152a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ function run_miri {
# rustdoc is already passed --color=always, so adding it to the global MIRIFLAGS is just an error
MIRIFLAGS="$MIRIFLAGS --color=always" timed miri nextest run --color=always --no-fail-fast --config-file=/root/.cargo/nextest.toml $ARGS
# nextest runs one interpreter per test, so unsupported errors only terminate the test not the whole suite.
# But we need to panic on unsupported for doctests, because nextest doesn't support doctests.
MIRIFLAGS="$MIRIFLAGS -Zmiri-panic-on-unsupported" timed miri test --doc --no-fail-fast $ARGS
# but the doctests implementation is quite different and already creates a new interpreter for every test.
timed miri test --doc --no-fail-fast $ARGS
}

if [[ $TOOL == "miri" ]]; then
Expand Down

0 comments on commit eab152a

Please sign in to comment.