File tree Expand file tree Collapse file tree 11 files changed +21
-21
lines changed Expand file tree Collapse file tree 11 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ pub use dissimilar::diff as __diff;
2222/// `eprintln!()` macro in case of text inequality.
2323#[ macro_export]
2424macro_rules! assert_eq_text {
25- ( $left: expr_2021 , $right: expr_2021 ) => {
25+ ( $left: expr , $right: expr ) => {
2626 assert_eq_text!( $left, $right, )
2727 } ;
28- ( $left: expr_2021 , $right: expr_2021 , $( $tt: tt) * ) => { {
28+ ( $left: expr , $right: expr , $( $tt: tt) * ) => { {
2929 let left = $left;
3030 let right = $right;
3131 if left != right {
Original file line number Diff line number Diff line change @@ -950,7 +950,7 @@ mod tests {
950950 use crate :: args:: Command ;
951951
952952 macro_rules! args_vec {
953- ( $( $e: expr_2021 $( , ) ?) +) => {
953+ ( $( $e: expr $( , ) ?) +) => {
954954 vec![ $( OsString :: from( $e) , ) +]
955955 }
956956 }
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ mod tests {
237237 const BUCK_QUERY_CONFIG : BuckQueryConfig = BuckQueryConfig :: BuildGeneratedCode ;
238238
239239 macro_rules! args_vec {
240- ( $( $e: expr_2021 $( , ) ?) +) => {
240+ ( $( $e: expr $( , ) ?) +) => {
241241 vec![ $( OsString :: from( $e) , ) +]
242242 }
243243 }
Original file line number Diff line number Diff line change @@ -143,12 +143,12 @@ pub struct EqwalizerConfig {
143143}
144144
145145macro_rules! try_ {
146- ( $expr: expr_2021 ) => {
146+ ( $expr: expr ) => {
147147 || -> _ { Some ( $expr) } ( )
148148 } ;
149149}
150150macro_rules! try_or {
151- ( $expr: expr_2021 , $or: expr_2021 ) => {
151+ ( $expr: expr , $or: expr ) => {
152152 try_!( $expr) . unwrap_or( $or)
153153 } ;
154154}
@@ -401,7 +401,7 @@ macro_rules! _config_data {
401401 ( struct $name: ident {
402402 $(
403403 $( #[ doc=$doc: literal] ) *
404- $field: ident $( | $alias: ident) * : $ty: ty = $default: expr_2021 ,
404+ $field: ident $( | $alias: ident) * : $ty: ty = $default: expr ,
405405 ) *
406406 } ) => {
407407 #[ allow( non_snake_case) ]
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ impl Log for Logger {
128128/// so `drop` happens at the end of the function
129129#[ macro_export]
130130macro_rules! timeit {
131- ( $display: expr_2021 ) => {
131+ ( $display: expr ) => {
132132 $crate:: TimeIt :: new( module_path!( ) , $display, $crate:: Telemetry :: No )
133133 } ;
134134 ( $( $arg: tt) +) => {
@@ -140,7 +140,7 @@ macro_rules! timeit {
140140/// Same as timeit!, but also send a LSP telemetry/event
141141#[ macro_export]
142142macro_rules! timeit_with_telemetry {
143- ( $display: expr_2021 ) => {
143+ ( $display: expr ) => {
144144 $crate:: TimeIt :: new( module_path!( ) , $display, $crate:: Telemetry :: Always )
145145 } ;
146146 ( $( $arg: tt) +) => {
@@ -152,7 +152,7 @@ macro_rules! timeit_with_telemetry {
152152/// Same as timeit_with_telemetry!, but do work only if latency is more than configured value
153153#[ macro_export]
154154macro_rules! timeit_exceeds {
155- ( $display: expr_2021 , $duration: expr_2021 ) => {
155+ ( $display: expr , $duration: expr ) => {
156156 $crate:: TimeIt :: new(
157157 module_path!( ) ,
158158 $display,
Original file line number Diff line number Diff line change @@ -2436,7 +2436,7 @@ fn triple_quoted_strings_2() {
24362436// - Proper location reporting for failing tests
24372437macro_rules! my_expect {
24382438 [ $data: literal] => { $crate:: expect![ [ $data] ] } ;
2439- [ [ $data: expr_2021 ] ] => { expect_test:: Expect {
2439+ [ [ $data: expr ] ] => { expect_test:: Expect {
24402440 position: expect_test:: Position {
24412441 file: file!( ) ,
24422442 line: line!( ) ,
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ impl fmt::Display for RenameError {
4242
4343#[ macro_export]
4444macro_rules! _format_err {
45- ( $fmt: expr_2021 ) => { RenameError ( format!( $fmt) ) } ;
46- ( $fmt: expr_2021 , $( $arg: tt) +) => { RenameError ( format!( $fmt, $( $arg) +) ) }
45+ ( $fmt: expr ) => { RenameError ( format!( $fmt) ) } ;
46+ ( $fmt: expr , $( $arg: tt) +) => { RenameError ( format!( $fmt, $( $arg) +) ) }
4747}
4848pub use _format_err as format_err;
4949
Original file line number Diff line number Diff line change 1212
1313/// Constructs an SsrError taking arguments like the format macro.
1414macro_rules! _error {
15- ( $fmt: expr_2021 ) => { $crate:: SsrError :: new( format!( $fmt) ) } ;
16- ( $fmt: expr_2021 , $( $arg: tt) +) => { $crate:: SsrError :: new( format!( $fmt, $( $arg) +) ) }
15+ ( $fmt: expr ) => { $crate:: SsrError :: new( format!( $fmt) ) } ;
16+ ( $fmt: expr , $( $arg: tt) +) => { $crate:: SsrError :: new( format!( $fmt, $( $arg) +) ) }
1717}
1818#[ allow( unused_imports) ]
1919pub ( crate ) use _error as error;
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ use crate::get_literal_subid;
6363
6464// Creates a match error.
6565macro_rules! match_error {
66- ( $e: expr_2021 ) => { {
66+ ( $e: expr ) => { {
6767 MatchFailed {
6868 reason: if recording_match_fail_reasons( ) {
6969 Some ( format!( "{}" , $e) )
@@ -72,7 +72,7 @@ macro_rules! match_error {
7272 }
7373 }
7474 } } ;
75- ( $fmt: expr_2021 , $( $arg: tt) +) => { {
75+ ( $fmt: expr , $( $arg: tt) +) => { {
7676 MatchFailed {
7777 reason: if recording_match_fail_reasons( ) {
7878 Some ( format!( $fmt, $( $arg) +) )
Original file line number Diff line number Diff line change @@ -374,9 +374,9 @@ impl SourceFile {
374374macro_rules! match_ast {
375375 ( match $node: ident { $( $tt: tt) * } ) => { match_ast!( match ( $node) { $( $tt) * } ) } ;
376376
377- ( match ( $node: expr_2021 ) {
378- $( ast:: $ast: ident( $it: pat) => $res: expr_2021 , ) *
379- _ => $catch_all: expr_2021 $( , ) ?
377+ ( match ( $node: expr ) {
378+ $( ast:: $ast: ident( $it: pat) => $res: expr , ) *
379+ _ => $catch_all: expr $( , ) ?
380380 } ) => { {
381381 $( if let Some ( $it) = ast:: $ast:: cast( $node. clone( ) ) { $res } else ) *
382382 { $catch_all }
You can’t perform that action at this time.
0 commit comments