Skip to content

Commit 8bc6aaf

Browse files
authored
Update to the latest Rust nightly. (#113)
* Update to the latest Rust nightly. * 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. * Enable "no-f16-f128" in compiler-builtins for now.
1 parent 17bd08d commit 8bc6aaf

File tree

10 files changed

+11
-9
lines changed

10 files changed

+11
-9
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ errno = { version = "0.3.3", default-features = false, optional = true }
4040
# Special dependencies used in rustc-dep-of-std mode.
4141
core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
4242
alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-alloc" }
43-
compiler_builtins = { version = "0.1.101", optional = true }
43+
# Enable "no-f16-f128" for now, to work around lack of support on some targets.
44+
compiler_builtins = { version = "0.1.112", features = ["no-f16-f128"], optional = true }
4445

4546
[target.'cfg(not(target_arch = "arm"))'.dependencies.unwinding]
4647
version = "0.2.0"

example-crates/external-start/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ libc = { version = "0.2", default-features = false }
1515
# Crates to help writing no_std code.
1616
atomic-dbg = { version = "0.1.8", default-features = false }
1717
rustix-dlmalloc = { version = "0.1.0", features = ["global"] }
18-
compiler_builtins = { version = "0.1.101", features = ["mem"] }
18+
compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] }
1919

2020
# This is just an example crate, and not part of the origin workspace.
2121
[workspace]

example-crates/origin-start-dynamic-linker/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ origin = { path = "../..", default-features = false, features = ["origin-thread"
1515
# Crates to help writing no_std code.
1616
atomic-dbg = { version = "0.1.8", default-features = false }
1717
rustix-dlmalloc = { version = "0.1.0", features = ["global"] }
18-
compiler_builtins = { version = "0.1.101", features = ["mem"] }
18+
compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] }
1919

2020
# This is just an example crate, and not part of the origin workspace.
2121
[workspace]

example-crates/origin-start-lto/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ origin = { path = "../..", default-features = false, features = ["origin-thread"
1212
# Crates to help writing no_std code.
1313
atomic-dbg = { version = "0.1.8", default-features = false }
1414
rustix-dlmalloc = { version = "0.1.0", features = ["global"] }
15-
compiler_builtins = { version = "0.1.101", features = ["mem"] }
15+
compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] }
1616

1717
# This is just an example crate, and not part of the origin workspace.
1818
[workspace]

example-crates/origin-start-no-alloc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ origin = { path = "../..", default-features = false, features = ["origin-start"]
1111

1212
# Crates to help writing no_std code.
1313
atomic-dbg = { version = "0.1.8", default-features = false }
14-
compiler_builtins = { version = "0.1.101", features = ["mem"] }
14+
compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] }
1515

1616
# This is just an example crate, and not part of the origin workspace.
1717
[workspace]

example-crates/origin-start/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ origin = { path = "../..", default-features = false, features = ["origin-thread"
1212
# Crates to help writing no_std code.
1313
atomic-dbg = { version = "0.1.8", default-features = false }
1414
rustix-dlmalloc = { version = "0.1.0", features = ["global"] }
15-
compiler_builtins = { version = "0.1.101", features = ["mem"] }
15+
compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] }
1616

1717
# This is just an example crate, and not part of the origin workspace.
1818
[workspace]

example-crates/tiny/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ publish = false
1010
origin = { path = "../..", default-features = false, features = ["origin-start"] }
1111

1212
# Crates to help writing no_std code.
13-
compiler_builtins = { version = "0.1.101", features = ["mem"] }
13+
compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] }
1414

1515
# This is just an example crate, and not part of the origin workspace.
1616
[workspace]

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2024-04-21"
2+
channel = "nightly-2024-05-16"
33
components = ["rustc", "cargo", "rust-std", "rust-src", "rustfmt"]

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#![feature(strict_provenance)]
1010
#![feature(exposed_provenance)]
1111
#![deny(fuzzy_provenance_casts, lossy_provenance_casts)]
12+
#![allow(unexpected_cfgs)]
1213
#![no_std]
1314

1415
#[cfg(all(feature = "alloc", not(feature = "rustc-dep-of-std")))]

test-crates/origin-start/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ publish = false
88
origin = { path = "../..", default-features = false, features = ["origin-thread", "origin-start", "thread", "alloc"] }
99
atomic-dbg = { version = "0.1.8", default-features = false }
1010
rustix-dlmalloc = { version = "0.1.0", features = ["global"] }
11-
compiler_builtins = { version = "0.1.101", features = ["mem"] }
11+
compiler_builtins = { version = "0.1.112", features = ["mem", "no-f16-f128"] }
1212
rustix = { version = "0.38", default-features = false, features = ["thread"] }
1313
rustix-futex-sync = { version = "0.2.1", default-features = false }
1414

0 commit comments

Comments
 (0)