Module rustc_attr::builtin[][src]

Expand description

Parsing and validation of builtin attributes

Structs

ConstStability

Represents the #[rustc_const_unstable] and #[rustc_const_stable] attributes.

Deprecation
Stability

Represents the following attributes:

Version

Enums

AttrError
InlineAttr
InstructionSetAttr
IntType
OptimizeAttr
ReprAttr
StabilityLevel

The available stability levels.

TransparencyError
UnwindAttr

Functions

allow_internal_unstable
allow_unstable
cfg_matches

Tests if a cfg-pattern matches the cfg set

eval_condition

Evaluate a cfg-like condition (with any and all), using eval to evaluate individual items.

find_crate_name
find_deprecation

Finds the deprecation attribute. None if none exists.

find_deprecation_generic
find_repr_attrs

Parse #[repr(…)] forms.

find_stability

Collects stability info from all stability attributes in attrs. Returns None if no stability attributes are found.

find_stability_generic
find_transparency
find_unwind_attr

Determine what #[unwind] attribute is present in attrs, if any.

gate_cfg
handle_errors
int_type_of_word
is_builtin_attr
parse_alignment
parse_version
rustc_allow_const_fn_unstable
try_gate_cfg