ICE: Syntax error in if-let and Cell methods cause rustc panic at Box<Any> #78254
Labels
C-bug
Category: This is a bug.
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.
Code
Meta
Hi! 👋 First issue; sorry if anything is missing/off.
By the minimal example, it looks like the missing
let
in theif let
seems to cause a syntax error, but the usual diagnostic isn't reported and an ICE occurs, instead.This does not happen on stable, but I can reproduce on the following versions:
Error output
Backtrace
The text was updated successfully, but these errors were encountered: