diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-30 17:16:20 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-31 14:47:03 +1000 |
| commit | ff7d5ba65e94980fbfb13793ef5d503ffad559b0 (patch) | |
| tree | 5cfec5ec4eb139687a13d8239312b90f3a533d08 /compiler/rustc_resolve/src | |
| parent | c70c8b7196539b2b0356abd7f683921a05f137e7 (diff) | |
| download | rust-ff7d5ba65e94980fbfb13793ef5d503ffad559b0.tar.gz rust-ff7d5ba65e94980fbfb13793ef5d503ffad559b0.zip | |
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.
Diffstat (limited to 'compiler/rustc_resolve/src')
0 files changed, 0 insertions, 0 deletions
