Module rustc_attr::builtin
source · Expand description
Parsing and validation of builtin attributes
Structs
- Represents the
#[rustc_const_unstable]and#[rustc_const_stable]attributes. - Represents the
#[rustc_default_body_unstable]attribute. - Represents the following attributes:
- Version 🔒
Enums
- The available stability levels.
Constants
- The version placeholder that recently stabilized features contain inside the
sincefield of the#[stable]attribute.
Functions
- Tests if a cfg-pattern matches the cfg set
- Evaluate a cfg-like condition (with
anyandall), usingevalto evaluate individual items. - Finds the deprecation attribute.
Noneif none exists. - Parse #[repr(…)] forms.
- Collects stability info from all stability attributes in
attrs. ReturnsNoneif no stability attributes are found. - gate_cfg 🔒