diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-11 09:47:15 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-13 06:35:19 +1100 |
| commit | 2e2924f2631bebbf2e0f5f40e26bf5d8d032c6d4 (patch) | |
| tree | ca9f9ea876e3deb406934d442606700c62817d0f /compiler/rustc_parse/src/parser/path.rs | |
| parent | b65227a9ee38cd21e0b4ffbec7542d2638b661a2 (diff) | |
| download | rust-2e2924f2631bebbf2e0f5f40e26bf5d8d032c6d4.tar.gz rust-2e2924f2631bebbf2e0f5f40e26bf5d8d032c6d4.zip | |
Split and rename the annotation structs.
`NoAnn` and `IdentifiedAnnotation` impl both `pprust_ast::PpAnn` and `pprust_hir::PpAnn`, which is a bit confusing, because the optional `tcx` is only needed for the HIR cases. (Currently the `tcx` is unnecessarily provided in the `expanded` AST cases.) This commit splits each one into `Ast` and `Hir` versions, which makes things clear about where the `tcx` is needed. The commit also renames all the traits so they consistently end with `Ann`.
Diffstat (limited to 'compiler/rustc_parse/src/parser/path.rs')
0 files changed, 0 insertions, 0 deletions
