]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/macros/mod.rs
Readd the matches_macro diag item
[rust.git] / library / core / src / macros / mod.rs
index 34247c058450851402a6160af94d653010fb8842..c20ca69a1c6f1dd67b6e8b68c372fd1c8e62d991 100644 (file)
@@ -338,6 +338,7 @@ macro_rules! debug_assert_ne {
 /// ```
 #[macro_export]
 #[stable(feature = "matches_macro", since = "1.42.0")]
+#[cfg_attr(not(test), rustc_diagnostic_item = "matches_macro")]
 macro_rules! matches {
     ($expression:expr, $(|)? $( $pattern:pat_param )|+ $( if $guard: expr )? $(,)?) => {
         match $expression {