rust/tests/ui/coverage-attr
Nicholas Nethercote ccb2194f96 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.
2025-04-02 09:16:34 +11:00
..
allowed-positions.rs Un-redact one occurrence of "coverage attribute not allowed here" 2024-12-25 19:23:48 +11:00
allowed-positions.stderr Overhaul error messages for disallowed coverage attributes 2024-12-25 16:17:09 +11:00
bad-attr-ice.feat.stderr Trim suggestion part before generating highlights 2025-02-21 00:54:01 +00:00
bad-attr-ice.nofeat.stderr Trim suggestion part before generating highlights 2025-02-21 00:54:01 +00:00
bad-attr-ice.rs Revert "Auto merge of #130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" 2024-12-23 12:30:37 +11:00
bad-syntax.rs Revert "Auto merge of #130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" 2024-12-23 12:30:37 +11:00
bad-syntax.stderr More sophisticated span trimming 2025-02-21 00:41:17 +00:00
name-value.rs Fully redact the [E0788] error message in tests, to make changes easier 2024-12-25 16:00:47 +11:00
name-value.stderr Factor some code out of AstValidator::visit_items. 2025-04-02 09:16:34 +11:00
subword.rs Revert "Auto merge of #130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" 2024-12-23 12:30:37 +11:00
subword.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
word-only.rs Fully redact the [E0788] error message in tests, to make changes easier 2024-12-25 16:00:47 +11:00
word-only.stderr Factor some code out of AstValidator::visit_items. 2025-04-02 09:16:34 +11:00