Skip to content

Commit

Permalink
Ignore test with panic=abort.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Jul 1, 2022
1 parent 6a99461 commit 2f35392
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
4 changes: 3 additions & 1 deletion src/test/mir-opt/inline/caller-with-trivial-bound.rs
Original file line number Diff line number Diff line change
@@ -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;
}
Expand Down
22 changes: 11 additions & 11 deletions src/test/mir-opt/inline/caller_with_trivial_bound.foo.Inline.diff
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 2f35392

Please sign in to comment.