From cf11c261f0a1293a71ab0d579f4047525dbf8cef Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Thu, 21 May 2015 14:04:13 -0400 Subject: Standardize on `$t:ty` --- src/libcore/num/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libcore/num') 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 { 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 { -- cgit 1.4.1-3-g733a5