]> git.lizzy.rs Git - rust.git/commitdiff
Remove -Z no-landing-pads tests
authorAmanieu d'Antras <amanieu@gmail.com>
Tue, 31 Mar 2020 03:02:58 +0000 (04:02 +0100)
committerAmanieu d'Antras <amanieu@gmail.com>
Wed, 29 Apr 2020 00:05:55 +0000 (01:05 +0100)
src/test/run-fail/mir_codegen_no_landing_pads.rs [deleted file]
src/test/run-fail/mir_codegen_no_landing_pads_diverging.rs [deleted file]

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 (file)
index bf85057..0000000
+++ /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 (file)
index 04cf33b..0000000
+++ /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);
-}