mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
af1d16e82d
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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |