Module target_checking
rustc_
attr_
parsing
1.93.0-nightly
(278a90913 2025-10-28)
Module target_
checking
Module Items
Enums
Constants
Functions
In crate rustc_
attr_
parsing
rustc_attr_parsing
Module
target_
checking
Copy item path
Source
Enums
ยง
Allowed
Result
๐
Allowed
Targets
๐
Policy
๐
This policy determines what diagnostics should be emitted based on the
Target
of the attribute.
Constants
ยง
ALL_
TARGETS
๐
This is the list of all targets to which a attribute can be applied This is used for:
Functions
ยง
allowed_
targets_
applied
๐
Takes a list of
allowed_targets
for an attribute, and the
target
the attribute was applied to. Does some heuristic-based filtering to remove uninteresting targets, and formats the targets into a string
filter_
targets
๐