Open
Description
the offending config:
# .cargo/config.toml
unstable.codegen-backend = true
# commenting out the following line will allow rustc to bootstrap successfully
profile.dev.codegen-backend = "cranelift"
the errror:
error: failed to find a `codegen-backends` folder in the sysroot candidates:
* /home/binarycat/src/rs/rust/build/x86_64-unknown-linux-gnu/stage0
* /home/binarycat/src/rs/rust/build/x86_64-unknown-linux-gnu/stage0
reproduction steps:
- enable download-rustc
- remove all of
build/
./x doc library/core
(probably any build command works)
there's a lot of workarounds for this, but i was only able to diagnose it on a hunch, so at the very least the error message should be more clear.