Expand description
Data structures for representing parsed attributes in the Rust compiler.
Formerly rustc_attr_data_structures.
For detailed documentation about attribute processing, see rustc_attr_parsing.
Re-exports§
pub use ReprAttr::*;
Modules§
Structs§
Enums§
- Attribute
Kind  - Represents parsed built-in inert attributes.
 - CfgEntry
 - Coverage
Attr Kind  - Successfully-parsed value of a 
#[coverage(..)]attribute. - Debugger
Visualizer Type  - Deprecated
Since  - Release in which an API is deprecated.
 - Encode
Cross Crate  - Inline
Attr  - Instruction
SetAttr  - IntType
 - Linkage
 - Possible values for the 
#[linkage]attribute, allowing to specify the linkage type for aMonoItem. - Macro
UseArgs  - MirDialect
 - MirPhase
 - Native
LibKind  - Optimize
Attr  - PeImport
Name Type  - Different ways that the PE Format can decorate a symbol name. From https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#import-name-type
 - Repr
Attr  - Transparency
Error  - UsedBy
 - There are three valid forms of the attribute:
#[used], which is equivalent to#[used(linker)]on targets that support it, but#[used(compiler)]if not.#[used(compiler)]#[used(linker)] 
Traits§
- Print
Attribute  - This trait is used to print attributes in 
rustc_hir_pretty.