mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
e683e3eeac
There are cases where users create a unit variant for the purposes of tracking the number of variants for an nonexhaustive enum. We should check if an enum is explicitly marked as nonexhaustive before reporting `manual_non_exhaustive` in these cases. Fixes #11583