Skip to content

Commit cf11c26

Browse files
committed
Standardize on $t:ty
1 parent 3241b48 commit cf11c26

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libcore/num/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1362,9 +1362,9 @@ pub trait Float {
13621362
}
13631363

13641364
macro_rules! from_str_float_impl {
1365-
($T:ident) => {
1365+
($t:ty) => {
13661366
#[stable(feature = "rust1", since = "1.0.0")]
1367-
impl FromStr for $T {
1367+
impl FromStr for $t {
13681368
type Err = ParseFloatError;
13691369

13701370
/// Converts a string in base 10 to a float.
@@ -1405,10 +1405,10 @@ from_str_float_impl!(f32);
14051405
from_str_float_impl!(f64);
14061406

14071407
macro_rules! from_str_radix_int_impl {
1408-
($($T:ident)*) => {$(
1408+
($($t:ty)*) => {$(
14091409
#[stable(feature = "rust1", since = "1.0.0")]
14101410
#[allow(deprecated)]
1411-
impl FromStr for $T {
1411+
impl FromStr for $t {
14121412
type Err = ParseIntError;
14131413
fn from_str(src: &str) -> Result<Self, ParseIntError> {
14141414
from_str_radix(src, 10)
@@ -1428,7 +1428,7 @@ trait FromStrRadixHelper: PartialOrd + Copy {
14281428
}
14291429

14301430
macro_rules! doit {
1431-
($($t:ident)*) => ($(impl FromStrRadixHelper for $t {
1431+
($($t:ty)*) => ($(impl FromStrRadixHelper for $t {
14321432
fn min_value() -> Self { Self::min_value() }
14331433
fn from_u32(u: u32) -> Self { u as Self }
14341434
fn checked_mul(&self, other: u32) -> Option<Self> {

0 commit comments

Comments
 (0)