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

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Parsing and validation of builtin attributes

Structs

Deprecation [
Experimental
]
RustcConstUnstable [
Experimental
]
RustcDeprecation [
Experimental
]
Stability [
Experimental
]

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

Enums

AttrError [
Experimental
]
InlineAttr [
Experimental
]
IntType [
Experimental
]
ReprAttr [
Experimental
]
StabilityLevel [
Experimental
]

The available stability levels.

UnwindAttr [
Experimental
]

Functions

cfg_matches [
Experimental
]

Tests if a cfg-pattern matches the cfg set

contains_feature_attr [
Experimental
]

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

eval_condition [
Experimental
]

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

find_crate_name [
Experimental
]
find_deprecation [
Experimental
]

Find the deprecation attribute. None if none exists.

find_deprecation_generic [
Experimental
]
find_repr_attrs [
Experimental
]

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

find_stability [
Experimental
]

Find the first stability attribute. None if none exists.

find_stability_generic [
Experimental
]
find_unwind_attr [
Experimental
]

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

handle_errors [
Experimental
]
int_type_of_word [
Experimental
]