1
Fork 0

enable panic-catching tests in Miri

This commit is contained in:
Ralf Jung 2019-11-22 23:11:56 +01:00
parent 083b5a0a1b
commit 1e91e4e20a
2 changed files with 3 additions and 4 deletions

View file

@ -347,7 +347,7 @@ fn assert_covariance() {
// Destructors must be called exactly once per element.
// FIXME: re-enable emscripten once it can unwind again
#[test]
#[cfg(not(any(miri, target_os = "emscripten")))] // Miri does not support catching panics
#[cfg(not(target_os = "emscripten"))]
fn panic_safe() {
use std::cmp;
use std::panic::{self, AssertUnwindSafe};