Remove desugar_doc_comments arguments from TokenCursor::{inlined_,}next.

Because it's now always `self.desugar_doc_comments`.
This commit is contained in:
Nicholas Nethercote
2023-07-26 09:17:32 +10:00
parent 395e95c490
commit 8bfc692851
2 changed files with 24 additions and 19 deletions

View File

@@ -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);