ICE: index out of bounds: the len is 0 but the index is 0 #84027
Labels
A-incr-comp
Area: Incremental compilation
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Seems related to some other issues dealing with
on_disk_cache.rs
, but especially #83962 which was having trouble creating a MWE.To reproduce:
cargo new --lib bugtest
a.rs
a.rs
and runcargo test
cargo test
again.Nightly doesn't seem to have this problem, and if I delete
target
between builds, no error occurs.Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: