]> git.lizzy.rs Git - rust.git/commit
Rename `Cursor`/`CursorRef` as `TokenTreeCursor`/`RefTokenTreeCursor`.
authorNicholas Nethercote <n.nethercote@gmail.com>
Wed, 1 Feb 2023 01:58:04 +0000 (12:58 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Thu, 2 Feb 2023 23:06:52 +0000 (10:06 +1100)
commita86fc727fa9b9fa1ac60b67147736783b3376e91
tree209cdf6663964ae126c91a86717922a39db5a382
parentb5ecbbb998aae80541d70bf5c93be92e6c59a7a8
Rename `Cursor`/`CursorRef` as `TokenTreeCursor`/`RefTokenTreeCursor`.

This makes it clear they return token trees, and makes for a nice
comparison against `TokenCursor` which returns tokens.
compiler/rustc_ast/src/tokenstream.rs
compiler/rustc_expand/src/mbe/metavar_expr.rs
compiler/rustc_parse/src/parser/mod.rs
src/tools/rustfmt/src/macros.rs