Expand description

Built-in attributes and cfg flag gating.

Macros

cfg_fn 🔒
gated 🔒
or_default 🔒
A convenience macro to deal with $($expr)?.
rustc_attr 🔒
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.
GATED_CFGS 🔒
cfg(...)’s that are feature gated.

Statics

Functions

Find a gated cfg determined by the predicate which is given the cfg’s name.
Whether this builtin attribute is only used in the local crate. If so, it is not encoded in the crate metadata.

Type Definitions