Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/m68k.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
37 changes: 37 additions & 0 deletions patches/0030-Add-missing-feature-gate.patch
Original file line number Diff line number Diff line change
@@ -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

5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion tests/failing-lto-tests.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions tests/failing-ui-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading