We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TokenCursor::desugar_doc_comments
1 parent 8bfc692 commit 34b218eCopy full SHA for 34b218e
compiler/rustc_parse/src/parser/mod.rs
@@ -224,6 +224,9 @@ struct TokenCursor {
224
// because it's the outermost token stream which never has delimiters.
225
stack: Vec<(TokenTreeCursor, Delimiter, DelimSpan)>,
226
227
+ // We need to desugar doc comments from `/// foo` form into `#[doc =
228
+ // r"foo"]` form when parsing declarative macro inputs in `parse_tt`,
229
+ // because some declarative macros look for `doc` attributes.
230
desugar_doc_comments: bool,
231
232
// Counts the number of calls to `{,inlined_}next`.
0 commit comments