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
Auto merge of #14370 - weihanglo:build-std, r=Muscraft
fix: std Cargo.lock moved to `library` dir
#14358 didn't check the correct Cargo.lock existence
Perhaps it was there so the test passed,
but after a new nightly is out it is gone.
```
Blocking waiting for file lock on package cache
error: "/home/user/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/Cargo.lock" does not exist, unable to build with the standard library, try:
rustup component add rust-src --toolchain nightly-aarch64-apple-darwin
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
Fixesrust-lang/rust#128808
### How to test the change:
The current nightly `cargo 1.82.0-nightly (94977cb 2024-08-06)` would fail when running
```
cargo +nightly build -Zbuild-std --target <host-triple>
```
After this fix, it should just work
```
RUSTC=~/.rustup/toolchains/nightly-<host-triple>/bin/rustc ./target/debug/cargo build -Zbuild-std --target <host-triple>
```
0 commit comments