We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4e59188 + 34a1434 commit 239f84bCopy full SHA for 239f84b
compiler/rustc_span/src/symbol.rs
@@ -893,6 +893,7 @@ symbols! {
893
masked,
894
match_beginning_vert,
895
match_default_bindings,
896
+ matches_macro,
897
maxnumf32,
898
maxnumf64,
899
may_dangle,
library/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