]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_codegen_cranelift/patches/0028-coretests-Disable-long-running-tests.patch
New upstream version 1.70.0+dfsg1
[rustc.git] / compiler / rustc_codegen_cranelift / patches / 0028-coretests-Disable-long-running-tests.patch
1 From eb703e627e7a84f1cd8d0d87f0f69da1f0acf765 Mon Sep 17 00:00:00 2001
2 From: bjorn3 <bjorn3@users.noreply.github.com>
3 Date: Fri, 3 Dec 2021 12:16:30 +0100
4 Subject: [PATCH] Disable long running tests
5
6 ---
7 library/core/tests/slice.rs | 2 ++
8 1 file changed, 2 insertions(+)
9
10 diff --git a/slice.rs b/slice.rs
11 index 8402833..84592e0 100644
12 --- a/slice.rs
13 +++ b/slice.rs
14 @@ -1809,6 +1809,7 @@ fn sort_unstable() {
15 assert!(v == [0xDEADBEEF]);
16 }
17
18 +/*
19 #[test]
20 #[cfg(not(target_arch = "wasm32"))]
21 #[cfg_attr(miri, ignore)] // Miri is too slow
22 @@ -1914,6 +1915,7 @@ fn select_nth_unstable() {
23 v.select_nth_unstable(0);
24 assert!(v == [0xDEADBEEF]);
25 }
26 +*/
27
28 #[test]
29 #[should_panic(expected = "index 0 greater than length of slice")]
30 @@ -2462,6 +2462,7 @@ take_tests! {
31 #[cfg(not(miri))] // unused in Miri
32 const EMPTY_MAX: &'static [()] = &[(); usize::MAX];
33
34 +/*
35 // can't be a constant due to const mutability rules
36 #[cfg(not(miri))] // unused in Miri
37 macro_rules! empty_max_mut {
38 @@ -2485,6 +2486,7 @@ take_tests! {
39 (take_mut_oob_max_range_to_inclusive, (..=usize::MAX), None, empty_max_mut!()),
40 (take_mut_in_bounds_max_range_from, (usize::MAX..), Some(&mut [] as _), empty_max_mut!()),
41 }
42 +*/
43
44 #[test]
45 fn test_slice_from_ptr_range() {
46 --
47 2.26.2.7.g19db9cfb68
48