]> git.lizzy.rs Git - rust.git/commitdiff
enable panic-catching tests in Miri
authorRalf Jung <post@ralfj.de>
Fri, 22 Nov 2019 22:11:56 +0000 (23:11 +0100)
committerRalf Jung <post@ralfj.de>
Fri, 22 Nov 2019 22:11:56 +0000 (23:11 +0100)
src/liballoc/tests/binary_heap.rs
src/liballoc/tests/vec.rs

index a44cf1eaf6df0310471d4e6d8e67050c6c9aca95..81b22ca815b2594af84b36fce290b38b884c914e 100644 (file)
@@ -347,7 +347,7 @@ fn drain<'new>(d: Drain<'static, &'static str>) -> Drain<'new, &'new str> {
 // 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};
index 80537217697adebedb4e1c31fd3b3f79869e2ab6..58b555ecb4eee2d373c149fc37a07677c3020374 100644 (file)
@@ -944,10 +944,9 @@ fn drain_filter_complex() {
     }
 }
 
-// Miri does not support catching panics
 // FIXME: re-enable emscripten once it can unwind again
 #[test]
-#[cfg(not(any(miri, target_os = "emscripten")))]
+#[cfg(not(target_os = "emscripten"))]
 fn drain_filter_consumed_panic() {
     use std::rc::Rc;
     use std::sync::Mutex;
@@ -999,7 +998,7 @@ fn drop(&mut self) {
 
 // FIXME: Re-enable emscripten once it can catch panics
 #[test]
-#[cfg(not(any(miri, target_os = "emscripten")))] // Miri does not support catching panics
+#[cfg(not(target_os = "emscripten"))]
 fn drain_filter_unconsumed_panic() {
     use std::rc::Rc;
     use std::sync::Mutex;