mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
10cf3cb945
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.