We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a941c71 commit 8ff3ac7Copy full SHA for 8ff3ac7
coretests/tests/lib.rs
@@ -76,6 +76,7 @@
76
#![feature(min_specialization)]
77
#![feature(never_type)]
78
#![feature(next_index)]
79
+#![feature(non_exhaustive_omitted_patterns_lint)]
80
#![feature(numfmt)]
81
#![feature(pattern)]
82
#![feature(pointer_is_aligned_to)]
coretests/tests/macros.rs
@@ -213,3 +213,9 @@ fn _expression() {
213
}
214
);
215
216
+
217
+#[deny(non_exhaustive_omitted_patterns)]
218
+fn _matches_does_not_trigger_non_exhaustive_omitted_patterns_lint(o: core::sync::atomic::Ordering) {
219
+ // Ordering is a #[non_exhaustive] enum from a separate crate
220
+ let _m = matches!(o, core::sync::atomic::Ordering::Relaxed);
221
+}
0 commit comments