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>(
194194 {
195195 Ok ( n_usize)
196196 } 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" ;
198198 Err ( psess. dcx ( ) . struct_span_err ( span, msg) )
199199 }
200200}
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ macro_rules! metavar_token_without_ident {
103103
104104macro_rules! metavar_with_literal_suffix {
105105 ( $( $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
107107 //~| ERROR expected expression, found `$`
108108}
109109
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
160160LL | ( $( $i:ident ),* ) => { ${ ignore() } };
161161 | ^^^^^^
162162
163- error: only unsuffixes integer literals are supported in meta-variable expressions
163+ error: only unsuffixed integer literals are supported in meta-variable expressions
164164 --> $DIR/syntax-errors.rs:105:33
165165 |
166166LL | ( $( $i:ident ),* ) => { ${ index(1u32) } };
You can’t perform that action at this time.
0 commit comments