ICE with #[derive(Default)]
on enum with repeated variant names
#105101
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.
Found with a modified fuzz-rustc
Code
Error output
thread 'rustc' panicked at 'assertion failed: !suggestion.is_empty()', compiler/rustc_errors/src/diagnostic.rs:628
Backtrace
Regression
First ICEd in nightly-2021-07-29, likely from #86735 (@jhpratt), which added
#[derive(Default)]
support for enums.Version
The text was updated successfully, but these errors were encountered: