From 02653cadaa0b11688a01ff6c055134d1e1b23a92 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 17 May 2024 19:19:47 -0700 Subject: [PATCH 1/3] Update to the latest Rust nightly. --- rust-toolchain.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e51ce31..30a2c63 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2024-04-21" +channel = "nightly-2024-05-16" components = ["rustc", "cargo", "rust-std", "rust-src", "rustfmt"] From 30c227ae2803bdefdd38ef9937892e8832d22ecc Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 17 May 2024 19:29:19 -0700 Subject: [PATCH 2/3] Disable the `unexpected_cfgs` warning for now. Telling rustc about `doc_cfg` would require a build.rs script, which I'd rather not add if we don't otherwise need one. So for now, just disable this warning. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 95ab5ee..c1b98ed 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,6 +9,7 @@ #![feature(strict_provenance)] #![feature(exposed_provenance)] #![deny(fuzzy_provenance_casts, lossy_provenance_casts)] +#![allow(unexpected_cfgs)] #![no_std] #[cfg(all(feature = "alloc", not(feature = "rustc-dep-of-std")))] From 8619e491715ce3f3de2617a52c91b2a45342a9fa Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 18 May 2024 04:45:09 -0700 Subject: [PATCH 3/3] Enable "no-f16-f128" in compiler-builtins. --- Cargo.toml | 3 ++- example-crates/external-start/Cargo.toml | 2 +- example-crates/origin-start-dynamic-linker/Cargo.toml | 2 +- example-crates/origin-start-lto/Cargo.toml | 2 +- example-crates/origin-start-no-alloc/Cargo.toml | 2 +- example-crates/origin-start/Cargo.toml | 2 +- example-crates/tiny/Cargo.toml | 2 +- test-crates/origin-start/Cargo.toml | 2 +- 8 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c1dda67..0bf60a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,8 @@ errno = { version = "0.3.3", default-features = false, optional = true } # Special dependencies used in rustc-dep-of-std mode. core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" } alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-alloc" } -compiler_builtins = { version = "0.1.101", optional = true } +# Enable "no-f16-f128" for now, to work around lack of support on some targets. +compiler_builtins = { version = "0.1.112", features = ["no-f16-f128"], optional = true } [target.'cfg(not(target_arch = "arm"))'.dependencies.unwinding] version = "0.2.0" diff --git a/example-crates/external-start/Cargo.toml b/example-crates/external-start/Cargo.toml index dfec597..5cbb82a 100644 --- a/example-crates/external-start/Cargo.toml +++ b/example-crates/external-start/Cargo.toml @@ -15,7 +15,7 @@ libc = { version = "0.2", default-features = false } # Crates to help writing no_std code. atomic-dbg = { version = "0.1.8", default-features = false } rustix-dlmalloc = { version = "0.1.0", features = ["global"] } -compiler_builtins = { version = "0.1.101", features = ["mem"] } +compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] } # This is just an example crate, and not part of the origin workspace. [workspace] diff --git a/example-crates/origin-start-dynamic-linker/Cargo.toml b/example-crates/origin-start-dynamic-linker/Cargo.toml index a9ed1a3..6b615f8 100644 --- a/example-crates/origin-start-dynamic-linker/Cargo.toml +++ b/example-crates/origin-start-dynamic-linker/Cargo.toml @@ -15,7 +15,7 @@ origin = { path = "../..", default-features = false, features = ["origin-thread" # Crates to help writing no_std code. atomic-dbg = { version = "0.1.8", default-features = false } rustix-dlmalloc = { version = "0.1.0", features = ["global"] } -compiler_builtins = { version = "0.1.101", features = ["mem"] } +compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] } # This is just an example crate, and not part of the origin workspace. [workspace] diff --git a/example-crates/origin-start-lto/Cargo.toml b/example-crates/origin-start-lto/Cargo.toml index 0bac8ae..5798063 100644 --- a/example-crates/origin-start-lto/Cargo.toml +++ b/example-crates/origin-start-lto/Cargo.toml @@ -12,7 +12,7 @@ origin = { path = "../..", default-features = false, features = ["origin-thread" # Crates to help writing no_std code. atomic-dbg = { version = "0.1.8", default-features = false } rustix-dlmalloc = { version = "0.1.0", features = ["global"] } -compiler_builtins = { version = "0.1.101", features = ["mem"] } +compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] } # This is just an example crate, and not part of the origin workspace. [workspace] diff --git a/example-crates/origin-start-no-alloc/Cargo.toml b/example-crates/origin-start-no-alloc/Cargo.toml index f021fdf..4df79b3 100644 --- a/example-crates/origin-start-no-alloc/Cargo.toml +++ b/example-crates/origin-start-no-alloc/Cargo.toml @@ -11,7 +11,7 @@ origin = { path = "../..", default-features = false, features = ["origin-start"] # Crates to help writing no_std code. atomic-dbg = { version = "0.1.8", default-features = false } -compiler_builtins = { version = "0.1.101", features = ["mem"] } +compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] } # This is just an example crate, and not part of the origin workspace. [workspace] diff --git a/example-crates/origin-start/Cargo.toml b/example-crates/origin-start/Cargo.toml index 17107b5..9ad4a53 100644 --- a/example-crates/origin-start/Cargo.toml +++ b/example-crates/origin-start/Cargo.toml @@ -12,7 +12,7 @@ origin = { path = "../..", default-features = false, features = ["origin-thread" # Crates to help writing no_std code. atomic-dbg = { version = "0.1.8", default-features = false } rustix-dlmalloc = { version = "0.1.0", features = ["global"] } -compiler_builtins = { version = "0.1.101", features = ["mem"] } +compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] } # This is just an example crate, and not part of the origin workspace. [workspace] diff --git a/example-crates/tiny/Cargo.toml b/example-crates/tiny/Cargo.toml index 08b52b3..0fe2d81 100644 --- a/example-crates/tiny/Cargo.toml +++ b/example-crates/tiny/Cargo.toml @@ -10,7 +10,7 @@ publish = false origin = { path = "../..", default-features = false, features = ["origin-start"] } # Crates to help writing no_std code. -compiler_builtins = { version = "0.1.101", features = ["mem"] } +compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] } # This is just an example crate, and not part of the origin workspace. [workspace] diff --git a/test-crates/origin-start/Cargo.toml b/test-crates/origin-start/Cargo.toml index efac95d..a61053a 100644 --- a/test-crates/origin-start/Cargo.toml +++ b/test-crates/origin-start/Cargo.toml @@ -8,7 +8,7 @@ publish = false origin = { path = "../..", default-features = false, features = ["origin-thread", "origin-start", "thread", "alloc"] } atomic-dbg = { version = "0.1.8", default-features = false } rustix-dlmalloc = { version = "0.1.0", features = ["global"] } -compiler_builtins = { version = "0.1.101", features = ["mem"] } +compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] } rustix = { version = "0.38", default-features = false, features = ["thread"] } rustix-futex-sync = { version = "0.2.1", default-features = false }