@@ -227,7 +227,7 @@ macro_rules! lex_enum {
227227 // On the parser side, tries to parse either of the given string values,
228228 // and returns the variant if any of them succeeded.
229229 ( @decl $preamble: tt $name: ident $input: ident { $( $decl: tt) * } { $( $expr: tt) * } {
230- $( #[ $meta: meta] ) * $( $s: literal) |+ => $item: ident $( = $value: expr ) * ,
230+ $( #[ $meta: meta] ) * $( $s: literal) |+ => $item: ident $( = $value: expr_2021 ) * ,
231231 $( $rest: tt) *
232232 } ) => {
233233 lex_enum!( @decl $preamble $name $input {
@@ -324,27 +324,27 @@ pub fn complete<T>(res: LexResult<'_, T>) -> Result<T, LexError<'_>> {
324324
325325#[ cfg( test) ]
326326macro_rules! assert_ok {
327- ( $s: expr , $res: expr , $rest: expr ) => { {
327+ ( $s: expr_2021 , $res: expr_2021 , $rest: expr_2021 ) => { {
328328 let expr = $s. unwrap( ) ;
329329 assert_eq!( expr, ( $res, $rest) ) ;
330330 expr. 0
331331 } } ;
332332
333- ( $s: expr , $res: expr ) => {
333+ ( $s: expr_2021 , $res: expr_2021 ) => {
334334 assert_ok!( $s, $res, "" )
335335 } ;
336336}
337337
338338#[ cfg( test) ]
339339macro_rules! assert_err {
340- ( $s: expr , $kind: expr , $span: expr ) => {
340+ ( $s: expr_2021 , $kind: expr_2021 , $span: expr_2021 ) => {
341341 assert_eq!( $s, Err ( ( $kind, $span) ) )
342342 } ;
343343}
344344
345345#[ cfg( test) ]
346346macro_rules! assert_json {
347- ( $expr: expr , $json: tt) => { {
347+ ( $expr: expr_2021 , $json: tt) => { {
348348 let json = :: serde_json:: to_value( & $expr) . unwrap( ) ;
349349 assert_eq!( json, :: serde_json:: json!( $json) ) ;
350350 json
0 commit comments