File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
compiler/rustc_parse/src/parser Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,6 @@ pub struct Parser<'a> {
138
138
// Important: This must only be advanced from `bump` to ensure that
139
139
// `token_cursor.num_next_calls` is updated properly.
140
140
token_cursor : TokenCursor ,
141
- desugar_doc_comments : bool ,
142
141
/// This field is used to keep track of how many left angle brackets we have seen. This is
143
142
/// required in order to detect extra leading left angle brackets (`<` characters) and error
144
143
/// appropriately.
@@ -463,7 +462,6 @@ impl<'a> Parser<'a> {
463
462
desugar_doc_comments,
464
463
break_last_token : false ,
465
464
} ,
466
- desugar_doc_comments,
467
465
unmatched_angle_bracket_count : 0 ,
468
466
max_angle_bracket_count : 0 ,
469
467
last_unexpected_token_span : None ,
@@ -1107,7 +1105,7 @@ impl<'a> Parser<'a> {
1107
1105
pub fn bump ( & mut self ) {
1108
1106
// Note: destructuring here would give nicer code, but it was found in #96210 to be slower
1109
1107
// than `.0`/`.1` access.
1110
- let mut next = self . token_cursor . inlined_next ( self . desugar_doc_comments ) ;
1108
+ let mut next = self . token_cursor . inlined_next ( self . token_cursor . desugar_doc_comments ) ;
1111
1109
self . token_cursor . num_next_calls += 1 ;
1112
1110
// We've retrieved an token from the underlying
1113
1111
// cursor, so we no longer need to worry about
You can’t perform that action at this time.
0 commit comments