librustc_driver: use #[deriving(Copy)]
This commit is contained in:
parent
392ea799b8
commit
db45be2616
1 changed files with 2 additions and 6 deletions
|
|
@ -39,7 +39,7 @@ use std::option;
|
|||
use std::str::FromStr;
|
||||
use arena::TypedArena;
|
||||
|
||||
#[deriving(PartialEq, Show)]
|
||||
#[deriving(Copy, PartialEq, Show)]
|
||||
pub enum PpSourceMode {
|
||||
PpmNormal,
|
||||
PpmExpanded,
|
||||
|
|
@ -49,16 +49,12 @@ pub enum PpSourceMode {
|
|||
PpmExpandedHygiene,
|
||||
}
|
||||
|
||||
impl Copy for PpSourceMode {}
|
||||
|
||||
#[deriving(PartialEq, Show)]
|
||||
#[deriving(Copy, PartialEq, Show)]
|
||||
pub enum PpMode {
|
||||
PpmSource(PpSourceMode),
|
||||
PpmFlowGraph,
|
||||
}
|
||||
|
||||
impl Copy for PpMode {}
|
||||
|
||||
pub fn parse_pretty(sess: &Session, name: &str) -> (PpMode, Option<UserIdentifiedItem>) {
|
||||
let mut split = name.splitn(1, '=');
|
||||
let first = split.next().unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue