Skip to content

Commit b053f0b

Browse files
committed
libsyntax: Fix duplication of items that occurs if #[deriving_eq] is applied to a non-enum/non-struct. r=brson
1 parent e0876fd commit b053f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/ext/deriving.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub fn expand_deriving_eq(cx: ext_ctxt,
4949
enum_definition,
5050
item.ident));
5151
}
52-
_ => result.push(copy *item) // XXX: Don't copy.
52+
_ => ()
5353
}
5454
}
5555
dvec::unwrap(move result)

0 commit comments

Comments
 (0)