]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/ext/deriving/generic/mod.rs
Add AttrId to Attribute_
[rust.git] / src / libsyntax / ext / deriving / generic / mod.rs
index 0875daddc0f9fb3e0855bc475de3c75811272816..28595fecd89e914340e5d322f0d855097d573126 100644 (file)
@@ -182,6 +182,7 @@ fn eq(&self, other: &int) -> bool {
 use ast;
 use ast::{P, EnumDef, Expr, Ident, Generics, StructDef};
 use ast_util;
+use attr;
 use attr::AttrMetaMethods;
 use ext::base::ExtCtxt;
 use ext::build::AstBuilder;
@@ -427,6 +428,7 @@ fn create_derived_impl(&self,
                         self_ty_params.into_vec()), None);
 
         let attr = cx.attribute(
+            attr::mk_attr_id(),
             self.span,
             cx.meta_word(self.span,
                          InternedString::new("automatically_derived")));