Module rustc_feature::builtin_attrs
source · Expand description
Built-in attributes and cfg flag gating.
Macros
cfg_fn 🔒
gated 🔒
A conveniece macro to deal with
$($expr)?.template 🔒
A convenience macro for constructing attribute templates.
E.g.,
template!(Word, List: "description") means that the attribute
supports forms #[attr] and #[attr(description)].ungated 🔒
Structs
A template that the attribute input must match.
Only top-level shape (
#[attr] vs #[attr(...)] vs #[attr = ...]) is considered now.Enums
How to handle multiple duplicate attributes on the same item.
Constants
Attributes that have a special meaning to rustc or rustdoc.
cfg(...)’s that are feature gated.Statics
Functions
Find a gated cfg determined by the
predicate which is given the cfg’s name.