File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
compiler/rustc_expand/src/mbe
tests/ui/macros/rfc-3086-metavar-expr Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ fn parse_depth<'psess>(
194
194
{
195
195
Ok ( n_usize)
196
196
} else {
197
- let msg = "only unsuffixes integer literals are supported in meta-variable expressions" ;
197
+ let msg = "only unsuffixed integer literals are supported in meta-variable expressions" ;
198
198
Err ( psess. dcx ( ) . struct_span_err ( span, msg) )
199
199
}
200
200
}
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ macro_rules! metavar_token_without_ident {
103
103
104
104
macro_rules! metavar_with_literal_suffix {
105
105
( $( $i: ident ) ,* ) => { ${ index( 1u32 ) } } ;
106
- //~^ ERROR only unsuffixes integer literals are supported in meta-variable expressions
106
+ //~^ ERROR only unsuffixed integer literals are supported in meta-variable expressions
107
107
//~| ERROR expected expression, found `$`
108
108
}
109
109
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ error: meta-variables within meta-variable expressions must be referenced using
160
160
LL | ( $( $i:ident ),* ) => { ${ ignore() } };
161
161
| ^^^^^^
162
162
163
- error: only unsuffixes integer literals are supported in meta-variable expressions
163
+ error: only unsuffixed integer literals are supported in meta-variable expressions
164
164
--> $DIR/syntax-errors.rs:105:33
165
165
|
166
166
LL | ( $( $i:ident ),* ) => { ${ index(1u32) } };
You can’t perform that action at this time.
0 commit comments