Skip to main content

Module attr

Module attr 

Source

Re-exportsยง

use std::fmt; ๐Ÿ”’
use rustc_ast::attr::AttributeExt; ๐Ÿ”’
use rustc_ast::token::DocFragmentKind; ๐Ÿ”’
use rustc_ast::AttrStyle; ๐Ÿ”’
use rustc_ast::DelimArgs; ๐Ÿ”’
use rustc_ast::MetaItemLit; ๐Ÿ”’
use rustc_ast::ast; ๐Ÿ”’
use rustc_ast::join_path_idents; ๐Ÿ”’
use rustc_data_structures::stable_hash::StableHash; ๐Ÿ”’
use rustc_data_structures::stable_hash::StableHashCtxt; ๐Ÿ”’
use rustc_data_structures::stable_hash::StableHasher; ๐Ÿ”’
use rustc_error_messages::DiagArgValue; ๐Ÿ”’
use rustc_error_messages::IntoDiagArg; ๐Ÿ”’
use rustc_macros::Decodable; ๐Ÿ”’
use rustc_macros::Encodable; ๐Ÿ”’
use rustc_macros::StableHash; ๐Ÿ”’
use rustc_span::AttrId; ๐Ÿ”’
use rustc_span::DUMMY_SP; ๐Ÿ”’
use rustc_span::Ident; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use smallvec::SmallVec; ๐Ÿ”’
use thin_vec::ThinVec; ๐Ÿ”’
use crate::AttributeKind; ๐Ÿ”’

Structsยง

AttrItem
A non built-in attribute.
AttrPath
HashIgnoredAttrId
The derived implementation of StableHash on Attributes shouldnโ€™t hash AttrIds. By wrapping them in this, we make sure we never do.

Enumsยง

AttrArgs
Arguments of a unparsed attribute.
Attribute
A high level representation of an attribute.