Skip to content

Commit

Permalink
Update to the latest Rust nightly. (#113)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
sunfishcode authored May 18, 2024
1 parent 17bd08d commit 8bc6aaf
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion example-crates/external-start/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
2 changes: 1 addition & 1 deletion example-crates/origin-start-dynamic-linker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
2 changes: 1 addition & 1 deletion example-crates/origin-start-lto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion example-crates/origin-start-no-alloc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
2 changes: 1 addition & 1 deletion example-crates/origin-start/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
2 changes: 1 addition & 1 deletion example-crates/tiny/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2024-04-21"
channel = "nightly-2024-05-16"
components = ["rustc", "cargo", "rust-std", "rust-src", "rustfmt"]
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")))]
Expand Down
2 changes: 1 addition & 1 deletion test-crates/origin-start/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down

0 comments on commit 8bc6aaf

Please sign in to comment.