File tree 2 files changed +4
-3
lines changed 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 168
168
#![ feature( no_coverage) ] // rust-lang/rust#84605
169
169
#![ feature( int_error_matching) ]
170
170
#![ deny( unsafe_op_in_unsafe_fn) ]
171
+ #![ deny( or_patterns_back_compat) ]
171
172
172
173
// allow using `core::` in intra-doc links
173
174
#[ allow( unused_extern_crates) ]
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ macro_rules! assert_ne {
138
138
#[ unstable( feature = "assert_matches" , issue = "82775" ) ]
139
139
#[ allow_internal_unstable( core_panic) ]
140
140
macro_rules! assert_matches {
141
- ( $left: expr, $( $pattern: pat ) |+ $( if $guard: expr ) ? $( , ) ?) => ( {
141
+ ( $left: expr, $( $pattern: pat_param ) |+ $( if $guard: expr ) ? $( , ) ?) => ( {
142
142
match $left {
143
143
$( $pattern ) |+ $( if $guard ) ? => { }
144
144
ref left_val => {
@@ -150,7 +150,7 @@ macro_rules! assert_matches {
150
150
}
151
151
}
152
152
} ) ;
153
- ( $left: expr, $( $pattern: pat ) |+ $( if $guard: expr ) ?, $( $arg: tt) +) => ( {
153
+ ( $left: expr, $( $pattern: pat_param ) |+ $( if $guard: expr ) ?, $( $arg: tt) +) => ( {
154
154
match $left {
155
155
$( $pattern ) |+ $( if $guard ) ? => { }
156
156
ref left_val => {
@@ -315,7 +315,7 @@ macro_rules! debug_assert_matches {
315
315
#[ macro_export]
316
316
#[ stable( feature = "matches_macro" , since = "1.42.0" ) ]
317
317
macro_rules! matches {
318
- ( $expression: expr, $( $pattern: pat ) |+ $( if $guard: expr ) ? $( , ) ?) => {
318
+ ( $expression: expr, $( $pattern: pat_param ) |+ $( if $guard: expr ) ? $( , ) ?) => {
319
319
match $expression {
320
320
$( $pattern ) |+ $( if $guard ) ? => true ,
321
321
_ => false
You can’t perform that action at this time.
0 commit comments