ICE: unwrap None in type_of.rs (associated_const_equality) #93835
Labels
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
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.
I'm seeing an internal compiler error on the following input, found by fuzz-rustc:
Code
Error output
Affected versions: nightly since around 2022-02-08. Stable 1.58.1 doesn't ICE.
Backtrace
The relevant code has the following comment:
rust/compiler/rustc_typeck/src/collect/type_of.rs
Lines 511 to 512 in e7aca89
Now we do have a test case, so good luck.
cc @JulianKnodt, author of #93285, which introduced this line.
The text was updated successfully, but these errors were encountered: