849668ad71
Do not trigger ``[`rest_pat_in_fully_bound_structs`]`` on `#[non_exhaustive]` structs fixes #8029 Just adds an additional check to ensure that the`ty::VariantDef` is not marked as `#[non_exhaustive]`. changelog: Do not apply ``[`rest_pat_in_fully_bound_structs`]`` on structs marked as non exhaustive.