@@ -60,9 +60,9 @@ macro_rules! panic {
60
60
#[ cfg_attr( not( test) , rustc_diagnostic_item = "print_macro" ) ]
61
61
#[ allow_internal_unstable( print_internals) ]
62
62
macro_rules! print {
63
- ( $( $arg: tt) * ) => {
64
- $crate:: io:: _print( $crate:: format_args!( $( $arg) * ) )
65
- } ;
63
+ ( $( $arg: tt) * ) => { {
64
+ $crate:: io:: _print( $crate:: format_args!( $( $arg) * ) ) ;
65
+ } } ;
66
66
}
67
67
68
68
/// Prints to the standard output, with a newline.
@@ -99,9 +99,9 @@ macro_rules! println {
99
99
( ) => {
100
100
$crate:: print!( "\n " )
101
101
} ;
102
- ( $( $arg: tt) * ) => {
103
- $crate:: io:: _print( $crate:: format_args_nl!( $( $arg) * ) )
104
- } ;
102
+ ( $( $arg: tt) * ) => { {
103
+ $crate:: io:: _print( $crate:: format_args_nl!( $( $arg) * ) ) ;
104
+ } } ;
105
105
}
106
106
107
107
/// Prints to the standard error.
@@ -130,9 +130,9 @@ macro_rules! println {
130
130
#[ cfg_attr( not( test) , rustc_diagnostic_item = "eprint_macro" ) ]
131
131
#[ allow_internal_unstable( print_internals) ]
132
132
macro_rules! eprint {
133
- ( $( $arg: tt) * ) => {
134
- $crate:: io:: _eprint( $crate:: format_args!( $( $arg) * ) )
135
- } ;
133
+ ( $( $arg: tt) * ) => { {
134
+ $crate:: io:: _eprint( $crate:: format_args!( $( $arg) * ) ) ;
135
+ } } ;
136
136
}
137
137
138
138
/// Prints to the standard error, with a newline.
@@ -164,9 +164,9 @@ macro_rules! eprintln {
164
164
( ) => {
165
165
$crate:: eprint!( "\n " )
166
166
} ;
167
- ( $( $arg: tt) * ) => {
168
- $crate:: io:: _eprint( $crate:: format_args_nl!( $( $arg) * ) )
169
- } ;
167
+ ( $( $arg: tt) * ) => { {
168
+ $crate:: io:: _eprint( $crate:: format_args_nl!( $( $arg) * ) ) ;
169
+ } } ;
170
170
}
171
171
172
172
/// Prints and returns the value of a given expression for quick and dirty
0 commit comments