@@ -164,11 +164,11 @@ macro_rules! assert_ne {
164164/// assert_matches!(a, Some(x) if x > 100);
165165/// // assert_matches!(a, Some(x) if x < 100); // panics
166166/// ```
167- #[ stable( feature = "assert_matches" , since = "1.95 .0" ) ]
167+ #[ stable( feature = "assert_matches" , since = "1.96 .0" ) ]
168168#[ allow_internal_unstable( panic_internals) ]
169169#[ rustc_macro_transparency = "semiopaque" ]
170170pub macro assert_matches {
171- ( $left: expr, $( |) ? $( $pattern: pat_param ) |+ $( if $guard: expr ) ? $( , ) ?) => {
171+ ( $left: expr, $( |) ? $( $pattern: pat_param ) |+ $( if $guard: expr ) ? $( , ) ?) => { {
172172 match $left {
173173 $( $pattern ) |+ $( if $guard ) ? => { }
174174 ref left_val => {
@@ -179,8 +179,8 @@ pub macro assert_matches {
179179 ) ;
180180 }
181181 }
182- } ,
183- ( $left: expr, $( |) ? $( $pattern: pat_param ) |+ $( if $guard: expr ) ?, $( $arg: tt) +) => {
182+ } } ,
183+ ( $left: expr, $( |) ? $( $pattern: pat_param ) |+ $( if $guard: expr ) ?, $( $arg: tt) +) => { {
184184 match $left {
185185 $( $pattern ) |+ $( if $guard ) ? => { }
186186 ref left_val => {
@@ -191,7 +191,7 @@ pub macro assert_matches {
191191 ) ;
192192 }
193193 }
194- } ,
194+ } } ,
195195}
196196
197197/// Selects code at compile-time based on `cfg` predicates.
@@ -391,7 +391,7 @@ macro_rules! debug_assert_ne {
391391/// debug_assert_matches!(a, Some(x) if x > 100);
392392/// // debug_assert_matches!(a, Some(x) if x < 100); // panics
393393/// ```
394- #[ stable( feature = "assert_matches" , since = "1.95 .0" ) ]
394+ #[ stable( feature = "assert_matches" , since = "1.96 .0" ) ]
395395#[ allow_internal_unstable( assert_matches) ]
396396#[ rustc_macro_transparency = "semiopaque" ]
397397pub macro debug_assert_matches ( $( $arg: tt) * ) {
0 commit comments