Skip to content

Commit 3cfc190

Browse files
committed
Readd the matches_macro diag item
This is now used by Clippy
1 parent 507e0de commit 3cfc190

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/macros/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ pub macro debug_assert_matches($($arg:tt)*) {
338338
/// ```
339339
#[macro_export]
340340
#[stable(feature = "matches_macro", since = "1.42.0")]
341+
#[cfg_attr(not(test), rustc_diagnostic_item = "matches_macro")]
341342
macro_rules! matches {
342343
($expression:expr, $(|)? $( $pattern:pat_param )|+ $( if $guard: expr )? $(,)?) => {
343344
match $expression {

0 commit comments

Comments
 (0)