diff options
Diffstat (limited to 'src/rustc/middle/resolve.rs')
| -rw-r--r-- | src/rustc/middle/resolve.rs | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/rustc/middle/resolve.rs b/src/rustc/middle/resolve.rs index 1d6a8d8a630..13095ed5ccd 100644 --- a/src/rustc/middle/resolve.rs +++ b/src/rustc/middle/resolve.rs @@ -106,15 +106,6 @@ enum PatternBindingMode { IrrefutableMode } -#[cfg(stage0)] -impl PatternBindingMode : cmp::Eq { - pure fn eq(&&other: PatternBindingMode) -> bool { - (self as uint) == (other as uint) - } - pure fn ne(&&other: PatternBindingMode) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl PatternBindingMode : cmp::Eq { pure fn eq(other: &PatternBindingMode) -> bool { (self as uint) == ((*other) as uint) @@ -156,15 +147,6 @@ enum Mutability { Immutable } -#[cfg(stage0)] -impl Mutability : cmp::Eq { - pure fn eq(&&other: Mutability) -> bool { - (self as uint) == (other as uint) - } - pure fn ne(&&other: Mutability) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl Mutability : cmp::Eq { pure fn eq(other: &Mutability) -> bool { (self as uint) == ((*other) as uint) @@ -200,15 +182,6 @@ enum ImportDirectiveNS { AnyNS } -#[cfg(stage0)] -impl ImportDirectiveNS : cmp::Eq { - pure fn eq(&&other: ImportDirectiveNS) -> bool { - (self as uint) == (other as uint) - } - pure fn ne(&&other: ImportDirectiveNS) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl ImportDirectiveNS : cmp::Eq { pure fn eq(other: &ImportDirectiveNS) -> bool { (self as uint) == ((*other) as uint) @@ -305,15 +278,6 @@ enum XrayFlag { Xray //< Private items can be accessed. } -#[cfg(stage0)] -impl XrayFlag : cmp::Eq { - pure fn eq(&&other: XrayFlag) -> bool { - (self as uint) == (other as uint) - } - pure fn ne(&&other: XrayFlag) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl XrayFlag : cmp::Eq { pure fn eq(other: &XrayFlag) -> bool { (self as uint) == ((*other) as uint) @@ -326,15 +290,6 @@ enum AllowCapturingSelfFlag { DontAllowCapturingSelf, //< The "self" definition cannot be captured. } -#[cfg(stage0)] -impl AllowCapturingSelfFlag : cmp::Eq { - pure fn eq(&&other: AllowCapturingSelfFlag) -> bool { - (self as uint) == (other as uint) - } - pure fn ne(&&other: AllowCapturingSelfFlag) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl AllowCapturingSelfFlag : cmp::Eq { pure fn eq(other: &AllowCapturingSelfFlag) -> bool { (self as uint) == ((*other) as uint) @@ -548,15 +503,6 @@ enum Privacy { Public } -#[cfg(stage0)] -impl Privacy : cmp::Eq { - pure fn eq(&&other: Privacy) -> bool { - (self as uint) == (other as uint) - } - pure fn ne(&&other: Privacy) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl Privacy : cmp::Eq { pure fn eq(other: &Privacy) -> bool { (self as uint) == ((*other) as uint) |
