]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/ast.rs
Add AttrId to Attribute_
[rust.git] / src / libsyntax / ast.rs
index d4c01746098ea2faa19b26bae2e88676e3ffa80c..e77d1faf05d89a0790e9908d3ef3b2bfb549aad6 100644 (file)
@@ -1024,9 +1024,13 @@ pub enum AttrStyle {
     AttrInner,
 }
 
+#[deriving(Clone, Eq, TotalEq, Encodable, Decodable, Hash)]
+pub struct AttrId(pub uint);
+
 // doc-comments are promoted to attributes that have is_sugared_doc = true
 #[deriving(Clone, Eq, TotalEq, Encodable, Decodable, Hash)]
 pub struct Attribute_ {
+    pub id: AttrId,
     pub style: AttrStyle,
     pub value: @MetaItem,
     pub is_sugared_doc: bool,