Repository: rust
Issue: Tracking Issue for `#![feature(non_exhaustive_omitted_patterns_lint)]`
Labels: A-lints,T-lang,C-tracking-issue,A-exhaustiveness-checking,F-non_exhaustive_omitted_patterns_lint,S-tracking-ready-to-stabilize

<!--
Remember to add team labels to the tracking issue.
For a language team feature, this would e.g., be `T-lang`.
Such a feature should also be labeled with e.g., `F-my_feature`.
This label is used to associate issues (e.g., bugs and design questions) to the feature.
-->

This is a tracking issue for the `non_exhaustive_omitted_patterns` lint.
The feature gate for the issue is `#![feature(non_exhaustive_omitted_patterns_lint)]`.

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

### Steps
<!--
Include each step required to complete the feature. Typically this is a PR
implementing a feature, followed by a PR that stabilises the feature. However
for larger features an implementation could be broken up into multiple PRs.
-->

- [x] Implemented in https://github.com/rust-lang/rust/pull/86809
- [x] Set a feature gate https://github.com/rust-lang/rust/pull/89428
- [x] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide]) &mdash; https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#non-exhaustive-omitted-patterns
- [x] Clippy false positive https://github.com/rust-lang/rust-clippy/issues/10327
- [ ] `matches!` false positive https://github.com/rust-lang/rust/issues/135137
- [ ] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide])

[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs

### Unresolved Questions
<!--
Include any open questions that need to be answered before the feature can be
stabilised.
-->

- [ ] Lint name is potentially unclear https://github.com/rust-lang/rust/issues/89042#issuecomment-929464660
- [ ] Lint message needs to be improved https://github.com/rust-lang/rust/pull/89428#discussion_r722584982

### Implementation history

<!--
Include a list of all the PRs that were involved in implementing the feature.
-->
- [x] Implemented in https://github.com/rust-lang/rust/pull/86809
- [x] ICE was discovered in https://github.com/rust-lang/rust/issues/89382 and fixed https://github.com/rust-lang/rust/pull/89423
- [x] Feature gate PR https://github.com/rust-lang/rust/pull/89428
- [x] A bug was discovered in https://github.com/rust-lang/rust/issues/89042 and fixed https://github.com/rust-lang/rust/pull/89105
- [x] Filter out unstable/hidden fields too #89837
- [x] Rework the lint to make it more consistent https://github.com/rust-lang/rust/pull/116734
- [x] Warn users to not set the lint level on a single arm as was previously recommended https://github.com/rust-lang/rust/pull/117094