Skip to content

Commit 2f35392

Browse files
committed
Ignore test with panic=abort.
1 parent 6a99461 commit 2f35392

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

Diff for: src/test/mir-opt/inline/caller-with-trivial-bound.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
#![crate_type = "lib"]
1+
// ignore-wasm32 compiled with panic=abort by default
2+
// needs-unwind
23

4+
#![crate_type = "lib"]
35
pub trait Factory<T> {
46
type Item;
57
}

Diff for: src/test/mir-opt/inline/caller_with_trivial_bound.foo.Inline.diff

+11-11
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,32 @@
22
+ // MIR for `foo` after Inline
33

44
fn foo() -> () {
5-
let mut _0: (); // return place in scope 0 at $DIR/caller-with-trivial-bound.rs:15:1: 15:1
6-
let mut _1: <IntFactory as Factory<T>>::Item; // in scope 0 at $DIR/caller-with-trivial-bound.rs:18:9: 18:14
5+
let mut _0: (); // return place in scope 0 at $DIR/caller-with-trivial-bound.rs:17:1: 17:1
6+
let mut _1: <IntFactory as Factory<T>>::Item; // in scope 0 at $DIR/caller-with-trivial-bound.rs:20:9: 20:14
77
scope 1 {
8-
debug x => _1; // in scope 1 at $DIR/caller-with-trivial-bound.rs:18:9: 18:14
8+
debug x => _1; // in scope 1 at $DIR/caller-with-trivial-bound.rs:20:9: 20:14
99
}
1010

1111
bb0: {
12-
StorageLive(_1); // scope 0 at $DIR/caller-with-trivial-bound.rs:18:9: 18:14
13-
_1 = bar::<T>() -> bb1; // scope 0 at $DIR/caller-with-trivial-bound.rs:18:51: 18:61
12+
StorageLive(_1); // scope 0 at $DIR/caller-with-trivial-bound.rs:20:9: 20:14
13+
_1 = bar::<T>() -> bb1; // scope 0 at $DIR/caller-with-trivial-bound.rs:20:51: 20:61
1414
// mir::Constant
15-
// + span: $DIR/caller-with-trivial-bound.rs:18:51: 18:59
15+
// + span: $DIR/caller-with-trivial-bound.rs:20:51: 20:59
1616
// + literal: Const { ty: fn() -> <IntFactory as Factory<T>>::Item {bar::<T>}, val: Value(Scalar(<ZST>)) }
1717
}
1818

1919
bb1: {
20-
_0 = const (); // scope 0 at $DIR/caller-with-trivial-bound.rs:17:1: 19:2
21-
drop(_1) -> [return: bb2, unwind: bb3]; // scope 0 at $DIR/caller-with-trivial-bound.rs:19:1: 19:2
20+
_0 = const (); // scope 0 at $DIR/caller-with-trivial-bound.rs:19:1: 21:2
21+
drop(_1) -> [return: bb2, unwind: bb3]; // scope 0 at $DIR/caller-with-trivial-bound.rs:21:1: 21:2
2222
}
2323

2424
bb2: {
25-
StorageDead(_1); // scope 0 at $DIR/caller-with-trivial-bound.rs:19:1: 19:2
26-
return; // scope 0 at $DIR/caller-with-trivial-bound.rs:19:2: 19:2
25+
StorageDead(_1); // scope 0 at $DIR/caller-with-trivial-bound.rs:21:1: 21:2
26+
return; // scope 0 at $DIR/caller-with-trivial-bound.rs:21:2: 21:2
2727
}
2828

2929
bb3 (cleanup): {
30-
resume; // scope 0 at $DIR/caller-with-trivial-bound.rs:14:1: 19:2
30+
resume; // scope 0 at $DIR/caller-with-trivial-bound.rs:16:1: 21:2
3131
}
3232
}
3333

0 commit comments

Comments
 (0)