thread 'rustc' panicked at 'called Option::unwrap()
on a None
value', compiler/rustc_middle/src/hir/mod.rs:79:55
#90873
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
#![u=||{static d=||1;}]
Error output
The ICE happens after correctly reporting a few other errors, because the code is nonsense, so low priority. Affected versions: I tried nightly 2021-11-12 and stable 1.56.1 and they both show the same ICE.
Backtrace
Also note how there is one additional error below the backtrace, not sure if that's expected.
The text was updated successfully, but these errors were encountered: