Skip to content
Myr

Bypass error message comparison during miri test as well

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Our miri builder in CI runs using the newest nightly for which rustup's miri component built successfully. So even though this presents as a nightly toolchain, in general it can be out of date compared to the most recent nightly.

authored by David Tolnay · committed by David Tolnay · parent 376518b · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:tests/test_ensure.rs+1 added-1 removed
47 unmodified lines
48 // In general different rustc versions will format the interpolated lhs and49 // rhs $:expr fragment with insignificant differences in whitespace or50 // punctuation, so we check the message in full against nightly and do just51 // a cursory test on older toolchains.52 if rustversion::cfg!(nightly) {52 if rustversion::cfg!(nightly) && !cfg!(miri) {53 assert_eq!(actual, expected);54 } else {55 assert_eq!(actual.contains(" vs "), expected.contains(" vs "));56 }
628 unmodified lines