Skip to content

Commit 2f11b37

Browse files
authored
Merge pull request #313 from rust-lang/sync_from_rust_2023_08_12
Sync from rust 2023/08/12
2 parents 52716d2 + 53d89e8 commit 2f11b37

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+499
-683
lines changed

.github/workflows/stdarch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ jobs:
133133
if: ${{ !matrix.cargo_runner }}
134134
run: |
135135
cd build_sysroot/sysroot_src/library/stdarch/
136-
CHANNEL=release TARGET=x86_64-unknown-linux-gnu ../../../../cargo.sh test
136+
CHANNEL=release TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features" ../../../../cargo.sh test
137137
138138
- name: Run stdarch tests
139139
if: ${{ matrix.cargo_runner }}
140140
run: |
141141
cd build_sysroot/sysroot_src/library/stdarch/
142-
STDARCH_TEST_EVERYTHING=1 CHANNEL=release CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="${{ matrix.cargo_runner }}" TARGET=x86_64-unknown-linux-gnu ../../../../cargo.sh test -- --skip rtm --skip tbm --skip sse4a
142+
STDARCH_TEST_EVERYTHING=1 CHANNEL=release CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="${{ matrix.cargo_runner }}" TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features" ../../../../cargo.sh test -- --skip rtm --skip tbm --skip sse4a

Cargo.lock

Lines changed: 17 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ gccjit = { git = "https://github.com/antoyo/gccjit.rs" }
2828
#gccjit = { path = "../gccjit.rs" }
2929

3030
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
31+
# TODO(antoyo): make tempfile optional.
32+
tempfile = "3.7.1"
3133

3234
[dev-dependencies]
3335
lang_tester = "0.3.9"

build_sysroot/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
authors = ["bjorn3 <bjorn3@users.noreply.github.com>"]
33
name = "sysroot"
44
version = "0.0.0"
5+
resolver = "2"
56

67
[dependencies]
78
core = { path = "./sysroot_src/library/core" }

example/alloc_example.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![feature(start, core_intrinsics, alloc_error_handler, lang_items)]
22
#![no_std]
3+
#![allow(internal_features)]
34

45
extern crate alloc;
56
extern crate alloc_system;

example/alloc_system.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
#[cfg(any(target_arch = "x86",
1111
target_arch = "arm",
1212
target_arch = "mips",
13+
target_arch = "mips32r6",
1314
target_arch = "powerpc",
1415
target_arch = "powerpc64"))]
1516
const MIN_ALIGN: usize = 8;
1617
#[cfg(any(target_arch = "x86_64",
1718
target_arch = "aarch64",
1819
target_arch = "loongarch64",
1920
target_arch = "mips64",
21+
target_arch = "mips64r6",
2022
target_arch = "s390x",
2123
target_arch = "sparc64"))]
2224
const MIN_ALIGN: usize = 16;

example/arbitrary_self_types_pointers_and_wrappers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#![feature(arbitrary_self_types, unsize, coerce_unsized, dispatch_from_dyn)]
44
#![feature(rustc_attrs)]
5+
#![allow(internal_features)]
56

67
use std::{
78
ops::{Deref, CoerceUnsized, DispatchFromDyn},

example/mini_core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
thread_local
55
)]
66
#![no_core]
7-
#![allow(dead_code)]
7+
#![allow(dead_code, internal_features)]
88

99
#[no_mangle]
1010
unsafe extern "C" fn _Unwind_Resume() {

example/mini_core_hello_world.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
extern_types, thread_local
66
)]
77
#![no_core]
8-
#![allow(dead_code, non_camel_case_types)]
8+
#![allow(dead_code, internal_features, non_camel_case_types)]
99

1010
extern crate mini_core;
1111

example/mod_bench.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![feature(start, core_intrinsics, lang_items)]
22
#![no_std]
3+
#![allow(internal_features)]
34

45
#[link(name = "c")]
56
extern {}

0 commit comments

Comments
 (0)