You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected to see this happen: The standard library should be able to build, and so should my crate
Instead, this happened: building the standard library failed with this error:
error[E0433]: failed to resolve: use of undeclared crate or module `slice`
--> /localhome/somers/.rustup/toolchains/nightly-x86_64-unknown-freebsd/lib/rustlib/src/rust/library/std/src/sys/pal/unix/thread.rs:272:24
|
272 | let name = slice::from_raw_parts(info.name.as_ptr() as *const u8, info.name.len());
| ^^^^^ use of undeclared crate or module `slice`
|
help: consider importing one of these items
|
1 + use alloc::slice;
|
1 + use core::slice;
|
1 + use crate::slice;
saethlin
added
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Apr 1, 2024
I tried this code:
cargo check -Zbuild-std --target x86_64-unknown-haiku
I expected to see this happen: The standard library should be able to build, and so should my crate
Instead, this happened: building the standard library failed with this error:
Meta
rustc --version --verbose
:The most recent working compiler version that I know of is this:
The text was updated successfully, but these errors were encountered: