Closed
Description
I've checked out Cargo at rust-lang/cargo@4ce099b and from a clean build directory I get:
$ CARGO_INCREMENTAL=1 cargo +nightly test
...
Compiling cargo v0.18.0 (file:///home/alex/code/cargo)
Compiling cargotest v0.1.0 (file:///home/alex/code/cargo/tests/cargotest)
error: failed to remove /home/alex/code/cargo/target/debug/deps/metadata-2a6cfcba5e51f525.metadata.o: No such file or directory (os error 2)
warning: Error finalizing incremental compilation session directory `/home/alex/code/cargo/target/debug/incremental/metadata-2kp13d1pc45a0/s-emvufj4cj6-1f76yqu-working`: No such file or directory (os error 2)
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at '/buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/session/mod.rs:450: Trying to invalidate IncrCompSession `InvalidBecauseOfErrors { session_directory: "/home/alex/code/cargo/target/debug/incremental/metadata-2kp13d1pc45a0/s-emvufj4cj6-1f76yqu-working" }`', /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/session/mod.rs:782
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: Could not compile `cargo`.
Build failed, waiting for other jobs to finish...
error: build failed
The compiler in use is the current latest nightly, specifically:
$ rustc +nightly -vV
rustc 1.17.0-nightly (ea7a6486a 2017-02-04)
binary: rustc
commit-hash: ea7a6486a26af085862cd7a5596bb69e83d85e12
commit-date: 2017-02-04
host: x86_64-unknown-linux-gnu
release: 1.17.0-nightly
LLVM version: 3.9