diff options
| author | Tamir Duberstein <tamird@gmail.com> | 2015-05-21 14:04:13 -0400 |
|---|---|---|
| committer | Tamir Duberstein <tamird@gmail.com> | 2015-05-21 14:04:13 -0400 |
| commit | cf11c261f0a1293a71ab0d579f4047525dbf8cef (patch) | |
| tree | d015510393fdbbbbe5c45f7056145309bbdb5e80 /src/libcore/num | |
| parent | 3241b487fdcacf26ef7056e1a51d5220f66eafc2 (diff) | |
| download | rust-cf11c261f0a1293a71ab0d579f4047525dbf8cef.tar.gz rust-cf11c261f0a1293a71ab0d579f4047525dbf8cef.zip | |
Standardize on `$t:ty`
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 4b03e51eacb..bf26022692d 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -1362,9 +1362,9 @@ pub trait Float { } macro_rules! from_str_float_impl { - ($T:ident) => { + ($t:ty) => { #[stable(feature = "rust1", since = "1.0.0")] - impl FromStr for $T { + impl FromStr for $t { type Err = ParseFloatError; /// Converts a string in base 10 to a float. @@ -1405,10 +1405,10 @@ from_str_float_impl!(f32); from_str_float_impl!(f64); macro_rules! from_str_radix_int_impl { - ($($T:ident)*) => {$( + ($($t:ty)*) => {$( #[stable(feature = "rust1", since = "1.0.0")] #[allow(deprecated)] - impl FromStr for $T { + impl FromStr for $t { type Err = ParseIntError; fn from_str(src: &str) -> Result<Self, ParseIntError> { from_str_radix(src, 10) @@ -1428,7 +1428,7 @@ trait FromStrRadixHelper: PartialOrd + Copy { } macro_rules! doit { - ($($t:ident)*) => ($(impl FromStrRadixHelper for $t { + ($($t:ty)*) => ($(impl FromStrRadixHelper for $t { fn min_value() -> Self { Self::min_value() } fn from_u32(u: u32) -> Self { u as Self } fn checked_mul(&self, other: u32) -> Option<Self> { |
