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 507e0de commit 3cfc190Copy full SHA for 3cfc190
core/src/macros/mod.rs
@@ -338,6 +338,7 @@ pub macro debug_assert_matches($($arg:tt)*) {
338
/// ```
339
#[macro_export]
340
#[stable(feature = "matches_macro", since = "1.42.0")]
341
+#[cfg_attr(not(test), rustc_diagnostic_item = "matches_macro")]
342
macro_rules! matches {
343
($expression:expr, $(|)? $( $pattern:pat_param )|+ $( if $guard: expr )? $(,)?) => {
344
match $expression {
0 commit comments