We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78e7c7b commit 2ae0765Copy full SHA for 2ae0765
compiler/rustc_ast/src/ast.rs
@@ -2786,6 +2786,7 @@ pub enum AttrKind {
2786
#[derive(Clone, Encodable, Decodable, Debug)]
2787
pub struct NormalAttr {
2788
pub item: AttrItem,
2789
+ // Tokens for the full attribute, e.g. `#[foo]`, `#![bar]`.
2790
pub tokens: Option<LazyAttrTokenStream>,
2791
}
2792
@@ -2802,6 +2803,7 @@ impl NormalAttr {
2802
2803
pub struct AttrItem {
2804
pub path: Path,
2805
pub args: AttrArgs,
2806
+ // Tokens for the meta item, e.g. just the `foo` within `#[foo]` or `#![foo]`.
2807
2808
2809
0 commit comments