libsyntax: Fix duplication of items that occurs if #[deriving_eq] is applied to a non-enum/non-struct. r=brson

This commit is contained in:
Patrick Walton 2012-11-20 13:01:02 -08:00
parent e0876fdfc1
commit b053f0b5e6

View file

@ -49,7 +49,7 @@ pub fn expand_deriving_eq(cx: ext_ctxt,
enum_definition,
item.ident));
}
_ => result.push(copy *item) // XXX: Don't copy.
_ => ()
}
}
dvec::unwrap(move result)