rust/compiler/rustc_parse
Nicholas Nethercote af1d16e82d Improve doc comment desugaring.
Sometimes the parser needs to desugar a doc comment into `#[doc =
r"foo"]`. Currently it does this in a hacky way: by pushing a "fake" new
frame (one without a delimiter) onto the `TokenCursor` stack.

This commit changes things so that the token stream itself is modified
in place. The nice thing about this is that it means
`TokenCursorFrame::delim_sp` is now only `None` for the outermost frame.
2023-02-03 10:06:52 +11:00
..
src Improve doc comment desugaring. 2023-02-03 10:06:52 +11:00
Cargo.toml Use ThinVec in ast::Path. 2022-11-17 13:56:38 +11:00