]> git.lizzy.rs Git - rust.git/blobdiff - patches/0023-core-Ignore-failing-tests.patch
Disable new failing libcore tests
[rust.git] / patches / 0023-core-Ignore-failing-tests.patch
index 8104b8d767a1149f6fe55ec28008042ce1307178..5d2c3049f60ebfb03d44e5885d14390d1e0371d2 100644 (file)
@@ -30,6 +30,22 @@ index 4bc44e9..8e3c7a4 100644
  
  #[test]
  fn empty_array_is_always_default() {
+@@ -304,6 +304,7 @@ fn array_map() {
+     assert_eq!(b, [1, 2, 3]);
+ }
++/*
+ // See note on above test for why `should_panic` is used.
+ #[test]
+ #[should_panic(expected = "test succeeded")]
+@@ -332,6 +333,7 @@ fn array_map_drop_safety() {
+     assert_eq!(DROPPED.load(Ordering::SeqCst), num_to_create);
+     panic!("test succeeded")
+ }
++*/
+ #[test]
+ fn cell_allows_array_cycle() {
 diff --git a/library/core/tests/num/mod.rs b/library/core/tests/num/mod.rs
 index a17c094..5bb11d2 100644
 --- a/library/core/tests/num/mod.rs