about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-04-01 12:04:56 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-04-02 09:16:34 +1100
commitccb2194f9674c5be8bcc4d39ece15a382c863c2a (patch)
tree8a1ba697cfc53bda1ee7ae37f06e5984273e3edb /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent9bdac177fc2ba94af3529f511a2db6ab2198d100 (diff)
downloadrust-ccb2194f9674c5be8bcc4d39ece15a382c863c2a.tar.gz
rust-ccb2194f9674c5be8bcc4d39ece15a382c863c2a.zip
Factor some code out of `AstValidator::visit_items`.
Currently it uses `walk_item` on some item kinds. For other item kinds
it visits the fields individually. For the latter group, this commit
adds `visit_attrs_vis` and `visit_attrs_vis_ident` which bundle up
visits to the fields that don't need special handling. This makes it
clearer that they haven't been forgotten about.

Also, it's better to do the attribute visits at the start because
attributes precede the items in the source code. Because of this, a
couple of tests have their output improved: errors appear in an order
that matches the source code order.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions