1
Fork 0

libsyntax: use #[deriving(Copy)]

This commit is contained in:
Jorge Aparicio 2014-12-14 23:32:24 -05:00
parent a77e8a63d5
commit 86f8c127dd
19 changed files with 77 additions and 216 deletions

View file

@ -104,7 +104,7 @@ type ItemInfo = (Ident, Item_, Option<Vec<Attribute> >);
/// How to parse a path. There are four different kinds of paths, all of which
/// are parsed somewhat differently.
#[deriving(PartialEq)]
#[deriving(Copy, PartialEq)]
pub enum PathParsingMode {
/// A path with no type parameters; e.g. `foo::bar::Baz`
NoTypesAllowed,
@ -116,8 +116,6 @@ pub enum PathParsingMode {
LifetimeAndTypesWithColons,
}
impl Copy for PathParsingMode {}
enum ItemOrViewItem {
/// Indicates a failure to parse any kind of item. The attributes are
/// returned.