-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
A-layoutArea: target output directory layout, naming, and organizationArea: target output directory layout, naming, and organizationC-bugCategory: bugCategory: bugS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.regression-from-stable-to-nightlyRegression in nightly that previously worked in stable.Regression in nightly that previously worked in stable.
Description
Problem
While checking my workspace, cargo crashes immediately:
thread 'main' (107096802) panicked at src/tools/cargo/src/cargo/core/compiler/build_runner/compilation_files.rs:467:18:
artifact-dir was not locked
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
This is also causing rust-analyzer to crash on launch in VS Code.
cargo build and cargo run appear to be unaffected, as is cargo check (without --workspace).
Steps
$ cargo clean
$ VERSION=2025-11-20; rustup install nightly-$VERSION && rustup override set nightly-$VERSION
$ cargo check --workspace
Compiling serde_derive v1.0.228
Compiling bytemuck_derive v1.10.2
Compiling thiserror-impl v2.0.17
Compiling derive_more-impl v2.0.1
Compiling variadics_please v1.1.
...
$ cargo clean
$ VERSION=2025-11-21; rustup install nightly-$VERSION && rustup override set nightly-$VERSION
$ cargo check --workspace
thread 'main' (107096802) panicked at src/tools/cargo/src/cargo/core/compiler/build_runner/compilation_files.rs:467:18:
artifact-dir was not locked
note: run with `RUST_BACKTRACE=1` environment variable to display a backtracePossible Solution(s)
Downgrade to nightly-2025-11-20 or earlier.
Notes
No response
Version
cargo 1.93.0-nightly (5c0343317 2025-11-18)
release: 1.93.0-nightly
commit-hash: 5c0343317ce45d2ec17ecf41eaa473a02d73e29c
commit-date: 2025-11-18
host: aarch64-apple-darwin
libgit2: 1.9.1 (sys:0.20.2 vendored)
libcurl: 8.7.1 (sys:0.4.83+curl-8.15.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 3.5.4 30 Sep 2025
os: Mac OS 26.1.0 [64-bit]
Metadata
Metadata
Assignees
Labels
A-layoutArea: target output directory layout, naming, and organizationArea: target output directory layout, naming, and organizationC-bugCategory: bugCategory: bugS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.regression-from-stable-to-nightlyRegression in nightly that previously worked in stable.Regression in nightly that previously worked in stable.