diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 840c09409bb..2b4a5db5433 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,7 +101,7 @@ jobs: - name: Run y.sh cargo build run: | - ./y.sh cargo build --manifest-path tests/hello-world/Cargo.toml + CARGO_PROFILE_DEV_LTO=no ./y.sh cargo build --manifest-path tests/hello-world/Cargo.toml - name: Clean run: | diff --git a/.github/workflows/m68k.yml b/.github/workflows/m68k.yml index 11bc88e67d2..8882830f669 100644 --- a/.github/workflows/m68k.yml +++ b/.github/workflows/m68k.yml @@ -83,7 +83,7 @@ jobs: run: | ./y.sh prepare --only-libcore --cross ./y.sh build --sysroot --target-triple m68k-unknown-linux-gnu --target ${{ github.workspace }}/target_specs/m68k-unknown-linux-gnu.json - CG_RUSTFLAGS="-Clinker=m68k-unknown-linux-gnu-gcc" ./y.sh cargo build -Zjson-target-spec --manifest-path=./tests/hello-world/Cargo.toml --target ${{ github.workspace }}/target_specs/m68k-unknown-linux-gnu.json + CARGO_PROFILE_DEV_LTO=no CG_RUSTFLAGS="-Clinker=m68k-unknown-linux-gnu-gcc" ./y.sh cargo build -Zjson-target-spec --manifest-path=./tests/hello-world/Cargo.toml --target ${{ github.workspace }}/target_specs/m68k-unknown-linux-gnu.json ./y.sh clean all - name: Build @@ -110,7 +110,7 @@ jobs: vm_dir=$(pwd)/vm cd tests/hello-world - CG_RUSTFLAGS="-Clinker=m68k-unknown-linux-gnu-gcc" ../../y.sh cargo build --target m68k-unknown-linux-gnu + CARGO_PROFILE_DEV_LTO=no CG_RUSTFLAGS="-Clinker=m68k-unknown-linux-gnu-gcc" ../../y.sh cargo build --target m68k-unknown-linux-gnu sudo cp target/m68k-unknown-linux-gnu/debug/hello_world $vm_dir/home/ sudo chroot $vm_dir qemu-m68k-static /home/hello_world > hello_world_stdout expected_output="40" diff --git a/patches/0030-Add-missing-feature-gate.patch b/patches/0030-Add-missing-feature-gate.patch new file mode 100644 index 00000000000..a27ed4ea816 --- /dev/null +++ b/patches/0030-Add-missing-feature-gate.patch @@ -0,0 +1,37 @@ +From baa9c656ba61633f2e5785fc47bc8f88ed2f738e Mon Sep 17 00:00:00 2001 +From: bjorn3 <17426603+bjorn3@users.noreply.github.com> +Date: Wed, 11 Mar 2026 12:34:47 +0000 +Subject: [PATCH] Add missing feature gate + +--- + coretests/benches/lib.rs | 1 + + coretests/tests/lib.rs | 1 + + 2 file changed, 2 insertion(+) + +diff --git a/library/coretests/benches/lib.rs b/library/coretests/benches/lib.rs +index 150b9b3..281aa75 100644 +--- a/library/coretests/benches/lib.rs ++++ b/library/coretests/benches/lib.rs +@@ -8,6 +8,7 @@ + #![feature(iter_array_chunks)] + #![feature(iter_next_chunk)] + #![feature(iter_advance_by)] ++#![feature(num_internals)] + #![feature(uint_gather_scatter_bits)] + + extern crate test; +diff --git a/library/coretests/tests/lib.rs b/library/coretests/tests/lib.rs +index ecdb687..ab2cf77 100644 +--- a/library/coretests/tests/lib.rs ++++ b/library/coretests/tests/lib.rs +@@ -88,6 +88,7 @@ + #![feature(non_exhaustive_omitted_patterns_lint)] + #![feature(nonzero_from_str_radix)] + #![feature(numfmt)] ++#![feature(num_internals)] + #![feature(one_sided_range)] + #![feature(panic_internals)] + #![feature(pattern)] +-- +2.43.0 + diff --git a/src/lib.rs b/src/lib.rs index 592eb68ce27..a7e0972ccf4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -547,8 +547,9 @@ fn target_config(sess: &Session, target_info: &LockedTargetInfo) -> TargetConfig }, ); - let has_reliable_f16 = target_info.supports_target_dependent_type(CType::Float16); - let has_reliable_f128 = target_info.supports_target_dependent_type(CType::Float128); + // FIXME re-enable once the necessary intrinsics are implemented + let has_reliable_f16 = false; //target_info.supports_target_dependent_type(CType::Float16); + let has_reliable_f128 = false; //target_info.supports_target_dependent_type(CType::Float128); TargetConfig { target_features, diff --git a/tests/failing-lto-tests.txt b/tests/failing-lto-tests.txt index c45fc077658..4c62c35a512 100644 --- a/tests/failing-lto-tests.txt +++ b/tests/failing-lto-tests.txt @@ -1,4 +1,3 @@ -tests/ui/lto/all-crates.rs tests/ui/lto/debuginfo-lto-alloc.rs tests/ui/panic-runtime/lto-unwind.rs tests/ui/uninhabited/uninhabited-transparent-return-abi.rs diff --git a/tests/failing-ui-tests.txt b/tests/failing-ui-tests.txt index 8589929d2fb..5739b2cbd5d 100644 --- a/tests/failing-ui-tests.txt +++ b/tests/failing-ui-tests.txt @@ -99,3 +99,7 @@ tests/ui/eii/privacy1.rs tests/ui/eii/default/call_impl.rs tests/ui/c-variadic/copy.rs tests/ui/asm/x86_64/global_asm_escape.rs +tests/ui/lto/all-crates.rs +tests/ui/consts/const-eval/c-variadic.rs +tests/ui/eii/default/call_default_panics.rs +tests/ui/explicit-tail-calls/indirect.rs