Skip to content

Commit 54d2ec1

Browse files
committed
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
1 parent c5d0023 commit 54d2ec1

18 files changed

+245
-209
lines changed

Cargo.lock

+13-56
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ target-lexicon = "0.10.0"
2323

2424
ar = "0.8.0"
2525

26-
[dependencies.object]
27-
version = "0.25.0"
28-
default-features = false
29-
features = ["read", "std", "write"] # We don't need WASM support.
30-
3126
[dev-dependencies]
3227
lang_tester = "0.3.9"
3328
tempfile = "3.1.0"

Readme.md

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ Or add a breakpoint to `add_error` in gdb and print the line number using:
111111
p loc->m_line
112112
```
113113
114+
To get the `rustc` command to run in `gdb`, add the `--verbose` flag to `cargo build`.
115+
114116
### How to use a custom-build rustc
115117
116118
* Build the stage2 compiler (`rustup toolchain link debug-current build/x86_64-unknown-linux-gnu/stage2`).

patches/0023-core-Ignore-failing-tests.patch

+20
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,24 @@ index 4bc44e9..8e3c7a4 100644
4646

4747
#[test]
4848
fn cell_allows_array_cycle() {
49+
diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs
50+
index 3e00e0a..8e5663b 100644
51+
--- a/library/core/tests/slice.rs
52+
+++ b/library/core/tests/slice.rs
53+
@@ -2108,6 +2108,7 @@ fn test_copy_within_panics_src_out_of_bounds() {
54+
bytes.copy_within(usize::MAX..=usize::MAX, 0);
55+
}
56+
57+
+/*
58+
#[test]
59+
fn test_is_sorted() {
60+
let empty: [i32; 0] = [];
61+
@@ -2122,6 +2123,7 @@ fn test_is_sorted() {
62+
assert!(!["c", "bb", "aaa"].is_sorted());
63+
assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len()));
64+
}
65+
+*/
66+
67+
#[test]
68+
fn test_slice_run_destructors() {
4969
-- 2.21.0 (Apple Git-122)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From b1ae000f6da1abd3b8e9b80c40bc11c89b8ae93c Mon Sep 17 00:00:00 2001
2+
From: bjorn3 <bjorn3@users.noreply.github.com>
3+
Date: Thu, 30 Dec 2021 16:54:40 +0100
4+
Subject: [PATCH] [core] Disable portable-simd test
5+
6+
---
7+
library/core/tests/lib.rs | 1 -
8+
1 file changed, 1 deletion(-)
9+
10+
diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs
11+
index ec70034..7cd9e21 100644
12+
--- a/library/core/tests/lib.rs
13+
+++ b/library/core/tests/lib.rs
14+
@@ -121,7 +121,6 @@ mod pattern;
15+
mod pin;
16+
mod ptr;
17+
mod result;
18+
-mod simd;
19+
mod slice;
20+
mod str;
21+
mod str_lossy;
22+
--
23+
2.26.2.7.g19db9cfb68
24+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From 0ffdd8eda8df364391c8ac6e1ce92c73ba9254d4 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 | 3 +++
8+
1 file changed, 3 insertions(+)
9+
10+
diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs
11+
index 2c8f00a..44847ee 100644
12+
--- a/library/core/tests/slice.rs
13+
+++ b/library/core/tests/slice.rs
14+
@@ -2332,7 +2332,8 @@ macro_rules! empty_max_mut {
15+
};
16+
}
17+
18+
+/*
19+
#[cfg(not(miri))] // Comparing usize::MAX many elements takes forever in Miri (and in rustc without optimizations)
20+
take_tests! {
21+
slice: &[(); usize::MAX], method: take,
22+
(take_in_bounds_max_range_to, (..usize::MAX), Some(EMPTY_MAX), &[(); 0]),
23+
@@ -2345,3 +2347,4 @@ take_tests! {
24+
(take_mut_oob_max_range_to_inclusive, (..=usize::MAX), None, empty_max_mut!()),
25+
(take_mut_in_bounds_max_range_from, (usize::MAX..), Some(&mut [] as _), empty_max_mut!()),
26+
}
27+
+*/
28+
--
29+
2.26.2.7.g19db9cfb68
30+

rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2021-09-28
1+
nightly-2021-12-30

0 commit comments

Comments
 (0)