diff options
Diffstat (limited to 'src/rustc/driver')
| -rw-r--r-- | src/rustc/driver/driver.rs | 9 | ||||
| -rw-r--r-- | src/rustc/driver/rustc.rs | 9 | ||||
| -rw-r--r-- | src/rustc/driver/session.rs | 27 |
3 files changed, 0 insertions, 45 deletions
diff --git a/src/rustc/driver/driver.rs b/src/rustc/driver/driver.rs index 6fe6cab58e0..f890fa85eb3 100644 --- a/src/rustc/driver/driver.rs +++ b/src/rustc/driver/driver.rs @@ -138,15 +138,6 @@ enum compile_upto { cu_everything, } -#[cfg(stage0)] -impl compile_upto : cmp::Eq { - pure fn eq(&&other: compile_upto) -> bool { - (self as uint) == (other as uint) - } - pure fn ne(&&other: compile_upto) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl compile_upto : cmp::Eq { pure fn eq(other: &compile_upto) -> bool { (self as uint) == ((*other) as uint) diff --git a/src/rustc/driver/rustc.rs b/src/rustc/driver/rustc.rs index 3d055237669..1b4b47f1014 100644 --- a/src/rustc/driver/rustc.rs +++ b/src/rustc/driver/rustc.rs @@ -207,15 +207,6 @@ enum monitor_msg { done, } -#[cfg(stage0)] -impl monitor_msg : cmp::Eq { - pure fn eq(&&other: monitor_msg) -> bool { - (self as uint) == (other as uint) - } - pure fn ne(&&other: monitor_msg) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl monitor_msg : cmp::Eq { pure fn eq(other: &monitor_msg) -> bool { (self as uint) == ((*other) as uint) diff --git a/src/rustc/driver/session.rs b/src/rustc/driver/session.rs index 2e8cddf2095..335e1004078 100644 --- a/src/rustc/driver/session.rs +++ b/src/rustc/driver/session.rs @@ -12,15 +12,6 @@ use middle::lint; enum os { os_win32, os_macos, os_linux, os_freebsd, } -#[cfg(stage0)] -impl os : cmp::Eq { - pure fn eq(&&other: os) -> bool { - (self as uint) == (other as uint) - } - pure fn ne(&&other: os) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl os : cmp::Eq { pure fn eq(other: &os) -> bool { (self as uint) == ((*other) as uint) @@ -30,15 +21,6 @@ impl os : cmp::Eq { enum arch { arch_x86, arch_x86_64, arch_arm, } -#[cfg(stage0)] -impl arch: cmp::Eq { - pure fn eq(&&other: arch) -> bool { - (self as uint) == (other as uint) - } - pure fn ne(&&other: arch) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl arch : cmp::Eq { pure fn eq(other: &arch) -> bool { (self as uint) == ((*other) as uint) @@ -112,15 +94,6 @@ enum OptLevel { Aggressive // -O3 } -#[cfg(stage0)] -impl OptLevel : cmp::Eq { - pure fn eq(&&other: OptLevel) -> bool { - (self as uint) == (other as uint) - } - pure fn ne(&&other: OptLevel) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl OptLevel : cmp::Eq { pure fn eq(other: &OptLevel) -> bool { (self as uint) == ((*other) as uint) |
