diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-02-26 17:12:00 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-02-27 09:40:16 -0800 |
| commit | 07c3f5c0de752166ae34f0fe50e50e65a2403b66 (patch) | |
| tree | 2c40b3bb0659ac6ea6dabed650d8e01de199e3f5 /src/libcore/num | |
| parent | 573a31dfa769887f4be77a621ef4cab2d92a74e5 (diff) | |
| download | rust-07c3f5c0de752166ae34f0fe50e50e65a2403b66.tar.gz rust-07c3f5c0de752166ae34f0fe50e50e65a2403b66.zip | |
librustc: Forbid `pub` or `priv` before trait implementations
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/f32.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/f64.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/float.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/int-template/i16.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/int-template/i32.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/int-template/i64.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/int-template/i8.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/int-template/int.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/uint-template/u16.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/uint-template/u32.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/uint-template/u64.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/uint-template/u8.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/uint-template/uint.rs | 4 |
13 files changed, 14 insertions, 14 deletions
diff --git a/src/libcore/num/f32.rs b/src/libcore/num/f32.rs index d5407daca80..c4f2704ab9f 100644 --- a/src/libcore/num/f32.rs +++ b/src/libcore/num/f32.rs @@ -284,7 +284,7 @@ impl num::One for f32 { static pure fn one() -> f32 { 1.0 } } -pub impl NumCast for f32 { +impl NumCast for f32 { /** * Cast `n` to an `f32` */ diff --git a/src/libcore/num/f64.rs b/src/libcore/num/f64.rs index 4e4e7c68646..8f3771312e4 100644 --- a/src/libcore/num/f64.rs +++ b/src/libcore/num/f64.rs @@ -299,7 +299,7 @@ impl cmp::Ord for f64 { pure fn gt(&self, other: &f64) -> bool { (*self) > (*other) } } -pub impl NumCast for f64 { +impl NumCast for f64 { /** * Cast `n` to an `f64` */ diff --git a/src/libcore/num/float.rs b/src/libcore/num/float.rs index b857f76570f..1b79ec614d4 100644 --- a/src/libcore/num/float.rs +++ b/src/libcore/num/float.rs @@ -420,7 +420,7 @@ impl num::One for float { static pure fn one() -> float { 1.0 } } -pub impl NumCast for float { +impl NumCast for float { /** * Cast `n` to a `float` */ diff --git a/src/libcore/num/int-template/i16.rs b/src/libcore/num/int-template/i16.rs index 1352959306a..a3def10bda8 100644 --- a/src/libcore/num/int-template/i16.rs +++ b/src/libcore/num/int-template/i16.rs @@ -17,7 +17,7 @@ mod inst { pub const bits: uint = ::u16::bits; } -pub impl NumCast for i16 { +impl NumCast for i16 { /** * Cast `n` to a `i16` */ diff --git a/src/libcore/num/int-template/i32.rs b/src/libcore/num/int-template/i32.rs index e8dd603d507..eccd1f6ce3c 100644 --- a/src/libcore/num/int-template/i32.rs +++ b/src/libcore/num/int-template/i32.rs @@ -17,7 +17,7 @@ mod inst { pub const bits: uint = ::u32::bits; } -pub impl NumCast for i32 { +impl NumCast for i32 { /** * Cast `n` to a `i32` */ diff --git a/src/libcore/num/int-template/i64.rs b/src/libcore/num/int-template/i64.rs index 6f1371f8ee2..05d529cbcf4 100644 --- a/src/libcore/num/int-template/i64.rs +++ b/src/libcore/num/int-template/i64.rs @@ -17,7 +17,7 @@ mod inst { pub const bits: uint = ::u64::bits; } -pub impl NumCast for i64 { +impl NumCast for i64 { /** * Cast `n` to a `i64` */ diff --git a/src/libcore/num/int-template/i8.rs b/src/libcore/num/int-template/i8.rs index 46c734b9548..d8819d4fed0 100644 --- a/src/libcore/num/int-template/i8.rs +++ b/src/libcore/num/int-template/i8.rs @@ -17,7 +17,7 @@ mod inst { pub const bits: uint = ::u8::bits; } -pub impl NumCast for i8 { +impl NumCast for i8 { /** * Cast `n` to a `i8` */ diff --git a/src/libcore/num/int-template/int.rs b/src/libcore/num/int-template/int.rs index 83ef421b705..7e376a47b89 100644 --- a/src/libcore/num/int-template/int.rs +++ b/src/libcore/num/int-template/int.rs @@ -58,7 +58,7 @@ mod inst { } } -pub impl NumCast for int { +impl NumCast for int { /** * Cast `n` to a `int` */ diff --git a/src/libcore/num/uint-template/u16.rs b/src/libcore/num/uint-template/u16.rs index 315ff84cc23..01ec0cc77bf 100644 --- a/src/libcore/num/uint-template/u16.rs +++ b/src/libcore/num/uint-template/u16.rs @@ -19,7 +19,7 @@ mod inst { pub const bits: uint = 16; } -pub impl NumCast for u16 { +impl NumCast for u16 { /** * Cast `n` to a `u16` */ diff --git a/src/libcore/num/uint-template/u32.rs b/src/libcore/num/uint-template/u32.rs index 834feff292c..772ef51d30d 100644 --- a/src/libcore/num/uint-template/u32.rs +++ b/src/libcore/num/uint-template/u32.rs @@ -19,7 +19,7 @@ mod inst { pub const bits: uint = 32; } -pub impl NumCast for u32 { +impl NumCast for u32 { /** * Cast `n` to a `u32` */ diff --git a/src/libcore/num/uint-template/u64.rs b/src/libcore/num/uint-template/u64.rs index b661b3b20b1..ec7301a01e4 100644 --- a/src/libcore/num/uint-template/u64.rs +++ b/src/libcore/num/uint-template/u64.rs @@ -19,7 +19,7 @@ mod inst { pub const bits: uint = 64; } -pub impl NumCast for u64 { +impl NumCast for u64 { /** * Cast `n` to a `u64` */ diff --git a/src/libcore/num/uint-template/u8.rs b/src/libcore/num/uint-template/u8.rs index c2be9e252d9..53e4be70727 100644 --- a/src/libcore/num/uint-template/u8.rs +++ b/src/libcore/num/uint-template/u8.rs @@ -26,7 +26,7 @@ mod inst { pub pure fn is_ascii(x: T) -> bool { return 0 as T == x & 128 as T; } } -pub impl NumCast for u8 { +impl NumCast for u8 { /** * Cast `n` to a `u8` */ diff --git a/src/libcore/num/uint-template/uint.rs b/src/libcore/num/uint-template/uint.rs index 475ae243915..e2a75b25eae 100644 --- a/src/libcore/num/uint-template/uint.rs +++ b/src/libcore/num/uint-template/uint.rs @@ -110,7 +110,7 @@ pub mod inst { return true; } - pub impl iter::Times for uint { + impl iter::Times for uint { #[inline(always)] /** * A convenience form for basic iteration. Given a uint `x`, @@ -209,7 +209,7 @@ pub mod inst { } } -pub impl NumCast for uint { +impl NumCast for uint { /** * Cast `n` to a `uint` */ |
