Build std with panic = "abort" errors with a bunch of duplicated lang items #115963
Labels
-Zbuild-std
Unstable Cargo option: Compile the standard library yourself.
A-crates
Area: Crates and their interactions (like crate loading)
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
The nightly version is not important, it's only what I was testing on.
Current output
A bunch of these:
Desired output
A nice message that said
panic_abort
must be included inbuild-std
if compiled withpanic = "abort"
.Rationale and extra context
From @Nilstrieb:
rustc can't find a
panic_abort
in your self-built standard library, so it falls back to loadingpanic_abort
from the sysroot. But that sysrootpanic_abort
then also brings in the rest of the sysroot, includingcore
, so now you have two cores, one from your target dir and one from your sysroot. This is bad.Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: