File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_parse/src/parser Expand file tree Collapse file tree 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> {
28802880 } ;
28812881
28822882 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) {
28842884 let exp_span = self . prev_token . span ;
28852885 // We permit `.. }` on the left-hand side of a destructuring assignment.
28862886 if self . check ( & token:: CloseDelim ( close_delim) ) {
@@ -3027,7 +3027,7 @@ impl<'a> Parser<'a> {
30273027 self . recover_stmt ( ) ;
30283028 }
30293029
3030- fn recover_struct_fileds_dots ( & mut self , close_delim : Delimiter ) -> bool {
3030+ fn recover_struct_field_dots ( & mut self , close_delim : Delimiter ) -> bool {
30313031 if !self . look_ahead ( 1 , |t| * t == token:: CloseDelim ( close_delim) )
30323032 && self . eat ( & token:: DotDotDot )
30333033 {
You can’t perform that action at this time.
0 commit comments