mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-24 05:59:39 +00:00
A check for `#[non_exhaustive]` is often done in combination with checking whether the type is local to the crate, in a variety of ways. Create a helper method and standardize on it as the way to check for this.