diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-26 09:17:32 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-26 12:46:43 +1000 |
| commit | 8bfc69285146bdfa97ea38bb9bcd5c8a92c1de47 (patch) | |
| tree | 449f6b380ccd15177183e4573ea15098b447e5d5 /compiler/rustc_parse/src/parser/attr_wrapper.rs | |
| parent | 395e95c4900367930af2f18c9a53ce18ed55d5d5 (diff) | |
| download | rust-8bfc69285146bdfa97ea38bb9bcd5c8a92c1de47.tar.gz rust-8bfc69285146bdfa97ea38bb9bcd5c8a92c1de47.zip | |
Remove `desugar_doc_comments` arguments from `TokenCursor::{inlined_,}next`.
Because it's now always `self.desugar_doc_comments`.
Diffstat (limited to 'compiler/rustc_parse/src/parser/attr_wrapper.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/attr_wrapper.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/attr_wrapper.rs b/compiler/rustc_parse/src/parser/attr_wrapper.rs index b579da098d8..4cc03664b47 100644 --- a/compiler/rustc_parse/src/parser/attr_wrapper.rs +++ b/compiler/rustc_parse/src/parser/attr_wrapper.rs @@ -107,7 +107,7 @@ impl ToAttrTokenStream for LazyAttrTokenStreamImpl { let tokens = std::iter::once((FlatToken::Token(self.start_token.0.clone()), self.start_token.1)) .chain((0..self.num_calls).map(|_| { - let token = cursor_snapshot.next(cursor_snapshot.desugar_doc_comments); + let token = cursor_snapshot.next(); (FlatToken::Token(token.0), token.1) })) .take(self.num_calls); |
