Skip to content

Commit db45be2

Browse files
author
Jorge Aparicio
committed
librustc_driver: use #[deriving(Copy)]
1 parent 392ea79 commit db45be2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/librustc_driver/pretty.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use std::option;
3939
use std::str::FromStr;
4040
use arena::TypedArena;
4141

42-
#[deriving(PartialEq, Show)]
42+
#[deriving(Copy, PartialEq, Show)]
4343
pub enum PpSourceMode {
4444
PpmNormal,
4545
PpmExpanded,
@@ -49,16 +49,12 @@ pub enum PpSourceMode {
4949
PpmExpandedHygiene,
5050
}
5151

52-
impl Copy for PpSourceMode {}
53-
54-
#[deriving(PartialEq, Show)]
52+
#[deriving(Copy, PartialEq, Show)]
5553
pub enum PpMode {
5654
PpmSource(PpSourceMode),
5755
PpmFlowGraph,
5856
}
5957

60-
impl Copy for PpMode {}
61-
6258
pub fn parse_pretty(sess: &Session, name: &str) -> (PpMode, Option<UserIdentifiedItem>) {
6359
let mut split = name.splitn(1, '=');
6460
let first = split.next().unwrap();

0 commit comments

Comments
 (0)