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. - 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 semantically equivalent to#[used(linker)]
except that the latter is currently unstable.#[used(compiler)]
#[used(linker)]
Traits§
- Print
Attribute - This trait is used to print attributes in
rustc_hir_pretty
.