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 acb0e71 commit 8a1b20eCopy full SHA for 8a1b20e
library/core/src/macros/mod.rs
@@ -426,8 +426,10 @@ pub macro debug_assert_matches($($arg:tt)*) {
426
#[macro_export]
427
#[stable(feature = "matches_macro", since = "1.42.0")]
428
#[rustc_diagnostic_item = "matches_macro"]
429
+#[allow_internal_unstable(non_exhaustive_omitted_patterns_lint, stmt_expr_attributes)]
430
macro_rules! matches {
431
($expression:expr, $pattern:pat $(if $guard:expr)? $(,)?) => {
432
+ #[allow(non_exhaustive_omitted_patterns)]
433
match $expression {
434
$pattern $(if $guard)? => true,
435
_ => false
0 commit comments