Skip to content

Commit 153fbfd

Browse files
authored
Merge pull request #578 from rust-lang/sync_from_rust_2024_12_11
Sync from rust 2024/12/11
2 parents 184d63d + 93f7f2f commit 153fbfd

Some content is hidden

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

62 files changed

+1244
-1065
lines changed

.github/workflows/ci.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,14 @@ jobs:
8787
8888
- name: Clean
8989
run: |
90-
./y.sh clean all
90+
./y.sh clean all
9191
9292
- name: Prepare dependencies
9393
run: |
9494
git config --global user.email "[email protected]"
9595
git config --global user.name "User"
9696
./y.sh prepare
9797
98-
- name: Add more failing tests because the sysroot is not compiled with LTO
99-
run: cat tests/failing-non-lto-tests.txt >> tests/failing-ui-tests.txt
100-
10198
- name: Run tests
10299
run: |
103100
./y.sh test --release --clean --build-sysroot ${{ matrix.commands }}

.github/workflows/failures.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,20 @@ jobs:
9090
if: matrix.libgccjit_version.gcc != 'libgccjit12.so'
9191
run: ./y.sh prepare
9292

93-
- name: Add more failing tests because the sysroot is not compiled with LTO
94-
run: cat tests/failing-non-lto-tests.txt >> tests/failing-ui-tests.txt
95-
9693
- name: Run tests
9794
# TODO: re-enable those tests for libgccjit 12.
9895
if: matrix.libgccjit_version.gcc != 'libgccjit12.so'
9996
id: tests
10097
run: |
101-
${{ matrix.libgccjit_version.env_extra }} ./y.sh test --release --clean --build-sysroot --test-failing-rustc ${{ matrix.libgccjit_version.extra }} | tee output_log
98+
${{ matrix.libgccjit_version.env_extra }} ./y.sh test --release --clean --build-sysroot --test-failing-rustc ${{ matrix.libgccjit_version.extra }} 2>&1 | tee output_log
10299
rg --text "test result" output_log >> $GITHUB_STEP_SUMMARY
103100
104101
- name: Run failing ui pattern tests for ICE
105102
# TODO: re-enable those tests for libgccjit 12.
106103
if: matrix.libgccjit_version.gcc != 'libgccjit12.so'
107104
id: ui-tests
108105
run: |
109-
${{ matrix.libgccjit_version.env_extra }} ./y.sh test --release --test-failing-ui-pattern-tests ${{ matrix.libgccjit_version.extra }} | tee output_log_ui
106+
${{ matrix.libgccjit_version.env_extra }} ./y.sh test --release --test-failing-ui-pattern-tests ${{ matrix.libgccjit_version.extra }} 2>&1 | tee output_log_ui
110107
if grep -q "the compiler unexpectedly panicked" output_log_ui; then
111108
echo "Error: 'the compiler unexpectedly panicked' found in output logs. CI Error!!"
112109
exit 1

.github/workflows/gcc12.yml

-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ jobs:
8282
#- name: Add more failing tests for GCC 12
8383
#run: cat tests/failing-ui-tests12.txt >> tests/failing-ui-tests.txt
8484

85-
#- name: Add more failing tests because the sysroot is not compiled with LTO
86-
#run: cat tests/failing-non-lto-tests.txt >> tests/failing-ui-tests.txt
87-
8885
#- name: Run tests
8986
#run: |
9087
#./y.sh test --release --clean --build-sysroot ${{ matrix.commands }} --no-default-features

.github/workflows/m68k.yml

-3
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ jobs:
102102
git config --global user.name "User"
103103
./y.sh prepare --cross
104104
105-
- name: Add more failing tests because the sysroot is not compiled with LTO
106-
run: cat tests/failing-non-lto-tests.txt >> tests/failing-ui-tests.txt
107-
108105
- name: Run tests
109106
run: |
110107
./y.sh test --release --clean --build-sysroot --sysroot-features compiler_builtins/no-f16-f128 ${{ matrix.commands }}

.github/workflows/release.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,9 @@ jobs:
7070
run: |
7171
# FIXME(antoyo): we cannot enable LTO for stdarch tests currently because of some failing LTO tests using proc-macros.
7272
echo -n 'lto = "fat"' >> build_system/build_sysroot/Cargo.toml
73-
EMBED_LTO_BITCODE=1 ./y.sh test --release --clean --release-sysroot --build-sysroot ${{ matrix.commands }}
73+
EMBED_LTO_BITCODE=1 ./y.sh test --release --clean --release-sysroot --build-sysroot --keep-lto-tests ${{ matrix.commands }}
74+
75+
- name: Run y.sh cargo build
76+
run: |
77+
EMBED_LTO_BITCODE=1 CHANNEL="release" ./y.sh cargo build --release --manifest-path tests/hello-world/Cargo.toml
78+
# TODO: grep the asm output for "call my_func" and fail if it is found.

Cargo.lock

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

Cargo.toml

+2-10
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,10 @@ gccjit = "2.4"
2828
# Local copy.
2929
#gccjit = { path = "../gccjit.rs" }
3030

31-
object = { version = "0.30.1", default-features = false, features = [
32-
"std",
33-
"read",
34-
] }
35-
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
36-
# TODO(antoyo): make tempfile optional.
37-
tempfile = "3.7.1"
38-
3931
[dev-dependencies]
40-
lang_tester = "0.8.0"
41-
tempfile = "3.1.0"
4232
boml = "0.3.1"
33+
lang_tester = "0.8.0"
34+
tempfile = "3.7.1"
4335

4436
[profile.dev]
4537
# By compiling dependencies with optimizations, performing tests gets much faster.

build_system/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use std::ffi::OsStr;
33
use std::path::{Path, PathBuf};
44
use std::{env as std_env, fs};
55

6-
use boml::types::TomlValue;
76
use boml::Toml;
7+
use boml::types::TomlValue;
88

99
use crate::utils::{
1010
create_dir, create_symlink, get_os_name, get_sysroot_dir, run_command_with_output,

0 commit comments

Comments
 (0)