OpaqueTypeKey ICE with ouroboros #114640
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) ❄️
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I upfront apologize for not being able to create a minimum reproducible sample. I tried incrementally to recreate this behavior by creating code from scratch, but wasn't able to. This seems to be triggered by an interaction with
ouroboros
, but when an inner struct changes (but not always, just under some specific set of circumstances I can't pin down). Please let me know if more information is needed to understand what's happening.Code
While trying to understand the issue, I created this struct based on an example in the
ouroboros
docs (which worked), and slowly modified to approach what I had that caused the crash. I built it in a separatemod
and everything worked (I could freely modify the struct without issues, while still using it in anouroboros
struct). I then moved it into the samemod
as my failing struct and switched it out for the struct causing errors inContext
. Now, if I try to modify the struct (add a field, change a name, anything), the ICE happens. However, as is, it will compile. This happened in 1.72 nightly, so I tried upgrading to nightly today, but no go. If I make changes,cargo clean
andcargo build
, it'll work.Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: