mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
61f70003c2
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.