rust/compiler/rustc_parse/src
Nicholas Nethercote ff7d5ba65e Move doc comment desugaring out of TokenCursor.
`TokenCursor` currently does doc comment desugaring on the fly, if the
`desugar_doc_comment` field is set. This requires also modifying the
token stream on the fly with `replace_prev_and_rewind`.

This commit moves the doc comment desugaring out of `TokenCursor`, by
introducing a new `TokenStream::desugar_doc_comment` method. This
separation of desugaring and iterating makes the code nicer.
2023-07-31 14:47:03 +10:00
..
lexer Auto merge of #113476 - fee1-dead-contrib:c-str-lit, r=petrochenkov 2023-07-25 12:04:34 +00:00
parser Move doc comment desugaring out of TokenCursor. 2023-07-31 14:47:03 +10:00
errors.rs Auto merge of #114028 - Centri3:ternary-operator, r=compiler-errors 2023-07-29 16:45:29 +00:00
lib.rs Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
validate_attr.rs Optimize format usage 2023-07-24 00:18:52 -04:00