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:
parent
e0876fdfc1
commit
b053f0b5e6
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue