Skip to content

Commit 58b0b19

Browse files
committed
Auto merge of #153815 - GokhanKabar:fix-ice-enum-discr-generic-self, r=BoxyUwU
Fix ICE when Self is used in enum discriminant of a generic enum Fixes rust-lang/rust#153756 Let discriminant AnonConst inherit parent generics via Node::Variant in generics_of, and emit a proper error instead of span_bug! for the TooGeneric case in wfcheck.
2 parents 9aa2700 + 17d8cbf commit 58b0b19

0 file changed

File tree

    0 commit comments

    Comments
     (0)