about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-05-17 20:41:58 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2022-07-01 17:45:13 +0200
commit2f35392383af0b91e07326fae95099cd49d9a8f8 (patch)
tree48c69d2d073d74fbe55842e06c9e1af7ba46ddd0 /src
parent6a9946143d403aecdff348e8498474eeb25eb2d4 (diff)
downloadrust-2f35392383af0b91e07326fae95099cd49d9a8f8.tar.gz
rust-2f35392383af0b91e07326fae95099cd49d9a8f8.zip
Ignore test with panic=abort.
Diffstat (limited to 'src')
-rw-r--r--src/test/mir-opt/inline/caller-with-trivial-bound.rs4
-rw-r--r--src/test/mir-opt/inline/caller_with_trivial_bound.foo.Inline.diff22
2 files changed, 14 insertions, 12 deletions
diff --git a/src/test/mir-opt/inline/caller-with-trivial-bound.rs b/src/test/mir-opt/inline/caller-with-trivial-bound.rs
index 32aa3b6f1ca..8545db89414 100644
--- a/src/test/mir-opt/inline/caller-with-trivial-bound.rs
+++ b/src/test/mir-opt/inline/caller-with-trivial-bound.rs
@@ -1,5 +1,7 @@
-#![crate_type = "lib"]
+// ignore-wasm32 compiled with panic=abort by default
+// needs-unwind
 
+#![crate_type = "lib"]
 pub trait Factory<T> {
     type Item;
 }
diff --git a/src/test/mir-opt/inline/caller_with_trivial_bound.foo.Inline.diff b/src/test/mir-opt/inline/caller_with_trivial_bound.foo.Inline.diff
index a1ce24f44da..5d236373a4c 100644
--- a/src/test/mir-opt/inline/caller_with_trivial_bound.foo.Inline.diff
+++ b/src/test/mir-opt/inline/caller_with_trivial_bound.foo.Inline.diff
@@ -2,32 +2,32 @@
 + // MIR for `foo` after Inline
   
   fn foo() -> () {
-      let mut _0: ();                      // return place in scope 0 at $DIR/caller-with-trivial-bound.rs:15:1: 15:1
-      let mut _1: <IntFactory as Factory<T>>::Item; // in scope 0 at $DIR/caller-with-trivial-bound.rs:18:9: 18:14
+      let mut _0: ();                      // return place in scope 0 at $DIR/caller-with-trivial-bound.rs:17:1: 17:1
+      let mut _1: <IntFactory as Factory<T>>::Item; // in scope 0 at $DIR/caller-with-trivial-bound.rs:20:9: 20:14
       scope 1 {
-          debug x => _1;                   // in scope 1 at $DIR/caller-with-trivial-bound.rs:18:9: 18:14
+          debug x => _1;                   // in scope 1 at $DIR/caller-with-trivial-bound.rs:20:9: 20:14
       }
   
       bb0: {
-          StorageLive(_1);                 // scope 0 at $DIR/caller-with-trivial-bound.rs:18:9: 18:14
-          _1 = bar::<T>() -> bb1;          // scope 0 at $DIR/caller-with-trivial-bound.rs:18:51: 18:61
+          StorageLive(_1);                 // scope 0 at $DIR/caller-with-trivial-bound.rs:20:9: 20:14
+          _1 = bar::<T>() -> bb1;          // scope 0 at $DIR/caller-with-trivial-bound.rs:20:51: 20:61
                                            // mir::Constant
-                                           // + span: $DIR/caller-with-trivial-bound.rs:18:51: 18:59
+                                           // + span: $DIR/caller-with-trivial-bound.rs:20:51: 20:59
                                            // + literal: Const { ty: fn() -> <IntFactory as Factory<T>>::Item {bar::<T>}, val: Value(Scalar(<ZST>)) }
       }
   
       bb1: {
-          _0 = const ();                   // scope 0 at $DIR/caller-with-trivial-bound.rs:17:1: 19:2
-          drop(_1) -> [return: bb2, unwind: bb3]; // scope 0 at $DIR/caller-with-trivial-bound.rs:19:1: 19:2
+          _0 = const ();                   // scope 0 at $DIR/caller-with-trivial-bound.rs:19:1: 21:2
+          drop(_1) -> [return: bb2, unwind: bb3]; // scope 0 at $DIR/caller-with-trivial-bound.rs:21:1: 21:2
       }
   
       bb2: {
-          StorageDead(_1);                 // scope 0 at $DIR/caller-with-trivial-bound.rs:19:1: 19:2
-          return;                          // scope 0 at $DIR/caller-with-trivial-bound.rs:19:2: 19:2
+          StorageDead(_1);                 // scope 0 at $DIR/caller-with-trivial-bound.rs:21:1: 21:2
+          return;                          // scope 0 at $DIR/caller-with-trivial-bound.rs:21:2: 21:2
       }
   
       bb3 (cleanup): {
-          resume;                          // scope 0 at $DIR/caller-with-trivial-bound.rs:14:1: 19:2
+          resume;                          // scope 0 at $DIR/caller-with-trivial-bound.rs:16:1: 21:2
       }
   }