-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Non-fatal error while running a specific cargo check
command
#128130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Does this issue persist after you do
Meaning the issue doesn't show up on nightly? |
It goes away
Yes, i have tried this command:
|
Does it stay away, or is does running your command make it happen again? |
This ICE is due to an incremental compilation file which is corrupt, probably because it was damaged by another process. This scenario seems to be so frequent that I've turned the ICE into a warning with a recovery path that just ignores the file. That change is in 1.80, which will be stable tomorrow. |
As far as I can tell, the ICE reported in this issue is caused by another process damaging rustc's build artifacts or by a buggy filesystem. That other process could be anything from an IDE running the compiler at the same time as a manual build to a find-and-replace that accidentally edits files in the target directory. #124686 contains a mitigation for this situation; the compiler now has a crude way to detect and ignore damaged incremental compilation files. You will still get a warning about the damaged file, but the build should proceed normally. That change shipped in Rust 1.80 which released today, so I am closing this issue and a few others which as far as I can tell all have the same root cause. You shouldn't see this ICE anymore, but please file a new issue if you see something like it on 1.80 or later. |
Code
I'm sorry I cannot provide a minimal code example as I am equally confused with this issue. However, I have tried this and it produces the error.
The original repository can be found here
I am using rust-analyzer v0.3.2045 with the command it spat out:
No error is produced with
cargo check
, just with these specific flagsMeta
rustc --version --verbose
:This issue only happens with the stable build
Error output
Backtrace
The text was updated successfully, but these errors were encountered: