diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-11-30 00:47:45 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-11-30 01:32:53 -0800 |
| commit | b52a4b412e515620c2c3ccbe8b7f8c7e0300f6ff (patch) | |
| tree | bf47bce8679ce1dde1d1b4c172924858e1bfc737 /src/libcore/uint-template.rs | |
| parent | 3ed9fbd63c6a3c6226bc466786e6d3c1bfec856d (diff) | |
core: Make core.rc more readable. Cleanup
Diffstat (limited to 'src/libcore/uint-template.rs')
| -rw-r--r-- | src/libcore/uint-template.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/uint-template.rs b/src/libcore/uint-template.rs index e96a6766570..9c191e7dadf 100644 --- a/src/libcore/uint-template.rs +++ b/src/libcore/uint-template.rs @@ -48,6 +48,7 @@ pub pure fn compl(i: T) -> T { max_value ^ i } +#[cfg(notest)] impl T : Ord { pure fn lt(&self, other: &T) -> bool { (*self) < (*other) } pure fn le(&self, other: &T) -> bool { (*self) <= (*other) } @@ -55,6 +56,7 @@ impl T : Ord { pure fn gt(&self, other: &T) -> bool { (*self) > (*other) } } +#[cfg(notest)] impl T : Eq { pure fn eq(&self, other: &T) -> bool { return (*self) == (*other); } pure fn ne(&self, other: &T) -> bool { return (*self) != (*other); } |
