ICE due to possibly corrupted cargo target folder #93558
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.
Code
This internal compiler error has not been caused by any specific code. I got it when I ran
cargo test
on a library. I went back through my git history to find a known-good commit on whichcargo test
passed. However, I got the backtrace as shown below even on this known-good version of the codebase.I suspected my target folder somehow got corrupted. Therefore I made a backup of it, removed it and rebuilt the entire project. This removed the ICE.
This leads me to believe that rust/cargo somehow got its own target folder in a weird state where compilation was no longer possible.
I attached my target folder of when the error occurred here if its of any use. I understand that this entire issue report doesn't provide much to go on. I still decided to report it since in general I don't think ICEs are ever desired.
EDIT: I moved by backup target folder back to see if I could reproduce the bug and I couldn't. This means we've got even less to go on :(.
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: