Skip to content

Commit 847a0dd

Browse files
committed
Remove uint_macros that was identical to int_macros
1 parent 5e17f31 commit 847a0dd

File tree

9 files changed

+13
-45
lines changed

9 files changed

+13
-45
lines changed

src/libcore/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,6 @@ mod internal_macros;
155155
#[macro_use]
156156
mod int_macros;
157157

158-
#[path = "num/uint_macros.rs"]
159-
#[macro_use]
160-
mod uint_macros;
161-
162158
#[path = "num/i128.rs"]
163159
pub mod i128;
164160
#[path = "num/i16.rs"]

src/libcore/num/int_macros.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#![doc(hidden)]
22

3+
macro_rules! doc_comment {
4+
($x:expr, $($tt:tt)*) => {
5+
#[doc = $x]
6+
$($tt)*
7+
};
8+
}
9+
310
macro_rules! int_module {
411
($T:ident) => (int_module!($T, #[stable(feature = "rust1", since = "1.0.0")]););
512
($T:ident, #[$attr:meta]) => (

src/libcore/num/u128.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
//! *[See also the `u128` primitive type](../../std/primitive.u128.html).*
44
55
#![stable(feature = "i128", since = "1.26.0")]
6-
uint_module! { u128, #[stable(feature = "i128", since="1.26.0")] }
6+
int_module! { u128, #[stable(feature = "i128", since="1.26.0")] }

src/libcore/num/u16.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
55
#![stable(feature = "rust1", since = "1.0.0")]
66

7-
uint_module! { u16 }
7+
int_module! { u16 }

src/libcore/num/u32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
55
#![stable(feature = "rust1", since = "1.0.0")]
66

7-
uint_module! { u32 }
7+
int_module! { u32 }

src/libcore/num/u64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
55
#![stable(feature = "rust1", since = "1.0.0")]
66

7-
uint_module! { u64 }
7+
int_module! { u64 }

src/libcore/num/u8.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
55
#![stable(feature = "rust1", since = "1.0.0")]
66

7-
uint_module! { u8 }
7+
int_module! { u8 }

src/libcore/num/uint_macros.rs

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/libcore/num/usize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
55
#![stable(feature = "rust1", since = "1.0.0")]
66

7-
uint_module! { usize }
7+
int_module! { usize }

0 commit comments

Comments
 (0)