File tree 1 file changed +2
-2
lines changed
compiler/rustc_parse/src/parser
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2880,7 +2880,7 @@ impl<'a> Parser<'a> {
2880
2880
} ;
2881
2881
2882
2882
while self . token != token:: CloseDelim ( close_delim) {
2883
- if self . eat ( & token:: DotDot ) || self . recover_struct_fileds_dots ( close_delim) {
2883
+ if self . eat ( & token:: DotDot ) || self . recover_struct_field_dots ( close_delim) {
2884
2884
let exp_span = self . prev_token . span ;
2885
2885
// We permit `.. }` on the left-hand side of a destructuring assignment.
2886
2886
if self . check ( & token:: CloseDelim ( close_delim) ) {
@@ -3027,7 +3027,7 @@ impl<'a> Parser<'a> {
3027
3027
self . recover_stmt ( ) ;
3028
3028
}
3029
3029
3030
- fn recover_struct_fileds_dots ( & mut self , close_delim : Delimiter ) -> bool {
3030
+ fn recover_struct_field_dots ( & mut self , close_delim : Delimiter ) -> bool {
3031
3031
if !self . look_ahead ( 1 , |t| * t == token:: CloseDelim ( close_delim) )
3032
3032
&& self . eat ( & token:: DotDotDot )
3033
3033
{
You can’t perform that action at this time.
0 commit comments