Expand description
Data structures for representing parsed attributes in the Rust compiler. For detailed documentation about attribute processing, see rustc_attr_parsing.
Re-exportsยง
pub use ReprAttr::*;
Modulesยง
- attributes ๐
 - encode_
cross_ ๐crate  - lints
 - stability ๐
 - version ๐
 
Macrosยง
- find_
attr  - Finds attributes in sequences of attributes by pattern matching.
 - print_
debug ๐ - print_
disp ๐ - print_
skip ๐ - print_
tup ๐ 
Structsยง
- Const
Stability  - Represents the 
#[rustc_const_unstable]and#[rustc_const_stable]attributes. - Default
Body Stability  - Represents the 
#[rustc_default_body_unstable]attribute. - Deprecation
 - Partial
Const Stability  - Excludes 
const_stable_indirect. This is necessary because when-Zforce-unstable-if-unmarkedis set, we need to encode standalone#[rustc_const_stable_indirect]attributes - Rustc
Version  - Stability
 - Represents the following attributes:
 - Stripped
CfgItem  
Enumsยง
- Attribute
Kind  - Represents parsed built-in inert attributes.
 - CfgEntry
 - Coverage
Status  - Deprecated
Since  - Release in which an API is deprecated.
 - Encode
Cross Crate  - Inline
Attr  - Instruction
SetAttr  - IntType
 - Optimize
Attr  - Repr
Attr  - Stability
Level  - The available stability levels.
 - Stable
Since  - Rust release in which a feature is stabilized.
 - Transparency
Error  - Unstable
Reason  - UsedBy
 - There are three valid forms of the attribute:
#[used], which is semantically equivalent to#[used(linker)]except that the latter is currently unstable.#[used(compiler)]#[used(linker)] 
Constantsยง
- VERSION_
PLACEHOLDER  - The version placeholder that recently stabilized features contain inside the
sincefield of the#[stable]attribute. 
Traitsยง
- Hash
Stable Context  - Requirements for a 
StableHashingContextto be used in this crate. This is a hack to allow using theHashStable_Genericderive macro instead of implementing everything inrustc_middle. - Print
Attribute  - This trait is used to print attributes in 
rustc_hir_pretty.