-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
Description
I tried this code:
$ cargo init repro
$ cd repro
$ cargo +nightly check --target thumbv8m.main-none-eabihf -Zbuild-std=std
I expected to see this happen: builds successfully
Instead, this happened:
Compiling std v0.0.0 (.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/std)
error[E0432]: unresolved import `crate::sys::thread_local::key::StaticKey`
--> .../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/sys/thread_local/os.rs:5:5
|
5 | use crate::sys::thread_local::key::StaticKey as OsKey;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `StaticKey` in `sys::thread_local::key`
For more information about this error, try `rustc --explain E0432`.
error: could not compile `std` (lib) due to 1 previous error
Meta
$ rustc +nightly --version --verbose
rustc 1.81.0-nightly (fda509e81 2024-06-25)
binary: rustc
commit-hash: fda509e817abeeecb5b76bc1de844f355675c81e
commit-date: 2024-06-25
host: aarch64-apple-darwin
release: 1.81.0-nightly
LLVM version: 18.1.7