about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2020-03-31 04:02:58 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2020-04-29 01:05:55 +0100
commit06e15a4ef91724cfaf3856f33277416bc53fa814 (patch)
tree319b250f4d65ffe5ee3c35112591259cd0e7c48e
parent2f5bd9d0f1f1f572b519f5e4ec6220dc85f03822 (diff)
downloadrust-06e15a4ef91724cfaf3856f33277416bc53fa814.tar.gz
rust-06e15a4ef91724cfaf3856f33277416bc53fa814.zip
Remove -Z no-landing-pads tests
-rw-r--r--src/test/run-fail/mir_codegen_no_landing_pads.rs27
-rw-r--r--src/test/run-fail/mir_codegen_no_landing_pads_diverging.rs27
2 files changed, 0 insertions, 54 deletions
diff --git a/src/test/run-fail/mir_codegen_no_landing_pads.rs b/src/test/run-fail/mir_codegen_no_landing_pads.rs
deleted file mode 100644
index bf850573cf8..00000000000
--- a/src/test/run-fail/mir_codegen_no_landing_pads.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-// compile-flags: -C panic=abort -C codegen-units=1
-// error-pattern:converging_fn called
-// ignore-cloudabi no std::process
-
-use std::io::{self, Write};
-
-struct Droppable;
-impl Drop for Droppable {
-    fn drop(&mut self) {
-        ::std::process::exit(1)
-    }
-}
-
-fn converging_fn() {
-    panic!("converging_fn called")
-}
-
-fn mir(d: Droppable) {
-    let x = Droppable;
-    converging_fn();
-    drop(x);
-    drop(d);
-}
-
-fn main() {
-    mir(Droppable);
-}
diff --git a/src/test/run-fail/mir_codegen_no_landing_pads_diverging.rs b/src/test/run-fail/mir_codegen_no_landing_pads_diverging.rs
deleted file mode 100644
index 04cf33b8a12..00000000000
--- a/src/test/run-fail/mir_codegen_no_landing_pads_diverging.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-// compile-flags: -C panic=abort -C codegen-units=1
-// error-pattern:diverging_fn called
-// ignore-cloudabi no std::process
-
-use std::io::{self, Write};
-
-struct Droppable;
-impl Drop for Droppable {
-    fn drop(&mut self) {
-        ::std::process::exit(1)
-    }
-}
-
-fn diverging_fn() -> ! {
-    panic!("diverging_fn called")
-}
-
-fn mir(d: Droppable) {
-    let x = Droppable;
-    diverging_fn();
-    drop(x);
-    drop(d);
-}
-
-fn main() {
-    mir(Droppable);
-}