Skip to content

Commit

Permalink
Rename debug! macro to impl_Debug!
Browse files Browse the repository at this point in the history
  • Loading branch information
zlfn committed Oct 15, 2024
1 parent db2efb0 commit 148ed85
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions core/src/fmt/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ integer! { i16, u16 }
integer! { i32, u32 }
integer! { i64, u64 }
integer! { i128, u128 }
macro_rules! debug {

macro_rules! impl_Debug {
($($T:ident)*) => {$(
#[stable(feature = "rust1", since = "1.0.0")]
impl fmt::Debug for $T {
Expand All @@ -184,10 +185,6 @@ macro_rules! debug {
}
)*};
}
debug! {
i8 i16 i32 i64 i128 isize
u8 u16 u32 u64 u128 usize
}

// 2 digit decimal look up table
static DEC_DIGITS_LUT: &[u8; 200] = b"0001020304050607080910111213141516171819\
Expand Down Expand Up @@ -510,6 +507,11 @@ macro_rules! impl_Exp {
};
}

impl_Debug! {
i8 i16 i32 i64 i128 isize
u8 u16 u32 u64 u128 usize
}

// Include wasm32 in here since it doesn't reflect the native pointer size, and
// often cares strongly about getting a smaller code size.
#[cfg(any(target_pointer_width = "64", target_arch = "wasm32"))]
Expand Down

0 comments on commit 148ed85

Please sign in to comment.