Panic in <rustc_mir::monomorphize::item::InstantiationMode as core::fmt::Debug>::fmt #62412
Labels
A-incr-comp
Area: Incremental compilation
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-bug
Category: This is a bug.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
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.
Got this error when running
cargo build
:The same command had been successful before, until it started failing consistently.
cargo clean
gave this error:I noticed "rls.exe" had that DLL loaded:
Next steps:
cargo build
: still fails the same waycargo clean
: no errorscargo build
: still fails the same waycargo build
: still fails the same waycargo clean
: no errorscargo build
: still fails the same wayAfter commenting out the body of
find_file_in_path
I could compile the code again and saw both withcargo build
and RLS a bunch of new errors which were not reported earlier. After fixing some of those I tried to selectively uncomment code infind_file_in_path
to see what triggers the problem. I found out that the culprit was use ofscopeguard::defer!{}
.I don't have a work-around for the
defer!
problem nor code I could share to repro the issue.It would be nice if the compiler wouldn't crash.
The text was updated successfully, but these errors were encountered: