[][src]Module syntax::attr::builtin

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Parsing and validation of builtin attributes

Structs

DeprecationInternal
RustcDeprecationInternal
StabilityInternal

Represents the #[stable], #[unstable], #[rustc_{deprecated,const_unstable}] attributes.

Enums

AttrErrorInternal
InlineAttrInternal
IntTypeInternal
OptimizeAttrInternal
ReprAttrInternal
StabilityLevelInternal

The available stability levels.

TransparencyErrorInternal
UnwindAttrInternal

Functions

cfg_matchesInternal

Tests if a cfg-pattern matches the cfg set

contains_feature_attrInternal

Checks if attrs contains an attribute like #![feature(feature_name)]. This will not perform any "sanity checks" on the form of the attributes.

eval_conditionInternal

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

find_crate_nameInternal
find_deprecationInternal

Finds the deprecation attribute. None if none exists.

find_deprecation_genericInternal
find_repr_attrsInternal

Parse #[repr(...)] forms.

find_stabilityInternal

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

find_stability_genericInternal
find_transparencyInternal
find_unwind_attrInternal

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

gate_cfgInternal
handle_errorsInternal
int_type_of_wordInternal
is_builtin_attrInternal