Skip to content

Commit a988dc2

Browse files
committed
remove patch from cranelift backend to ignore unwinding tests
1 parent 44556ee commit a988dc2

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

compiler/rustc_codegen_cranelift/patches/0023-coretests-Ignore-failing-tests.patch

-36
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,6 @@ Subject: [PATCH] [core] Ignore failing tests
1010
library/core/tests/time.rs | 1 +
1111
4 files changed, 18 insertions(+), 2 deletions(-)
1212

13-
diff --git a/array.rs b/array.rs
14-
index 4bc44e9..8e3c7a4 100644
15-
--- a/array.rs
16-
+++ b/array.rs
17-
@@ -242,6 +242,7 @@ fn iterator_drops() {
18-
assert_eq!(i.get(), 5);
19-
}
20-
21-
+/*
22-
// This test does not work on targets without panic=unwind support.
23-
// To work around this problem, test is marked is should_panic, so it will
24-
// be automagically skipped on unsuitable targets, such as
25-
@@ -283,6 +284,7 @@ fn array_default_impl_avoids_leaks_on_panic() {
26-
assert_eq!(COUNTER.load(Relaxed), 0);
27-
panic!("test succeeded")
28-
}
29-
+*/
30-
31-
#[test]
32-
fn empty_array_is_always_default() {
33-
@@ -304,6 +304,7 @@ fn array_map() {
34-
assert_eq!(b, [1, 2, 3]);
35-
}
36-
37-
+/*
38-
// See note on above test for why `should_panic` is used.
39-
#[test]
40-
#[should_panic(expected = "test succeeded")]
41-
@@ -332,6 +333,7 @@ fn array_map_drop_safety() {
42-
assert_eq!(DROPPED.load(Ordering::SeqCst), num_to_create);
43-
panic!("test succeeded")
44-
}
45-
+*/
46-
47-
#[test]
48-
fn cell_allows_array_cycle() {
4913
diff --git a/atomic.rs b/atomic.rs
5014
index 13b12db..96fe4b9 100644
5115
--- a/atomic.rs

0 commit comments

Comments
 (0)