Skip to content

Commit 8cb4d86

Browse files
committed
std: Clean up primitive integer modules
All of the modules in the standard library were just straight reexports of those in libcore, so remove all the "macro modules" from the standard library and just reexport what's in core directly.
1 parent 47ea0cf commit 8cb4d86

File tree

26 files changed

+86
-314
lines changed

26 files changed

+86
-314
lines changed

src/libcore/num/i16.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for signed 16-bits integers (`i16` type)
11+
//! The 16-bit signed integer type.
12+
//!
13+
//! *[See also the `i16` primitive type](../primitive.i16.html).*
1214
1315
#![stable(feature = "rust1", since = "1.0.0")]
1416

src/libcore/num/i32.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for signed 32-bits integers (`i32` type)
11+
//! The 32-bit signed integer type.
12+
//!
13+
//! *[See also the `i32` primitive type](../primitive.i32.html).*
1214
1315
#![stable(feature = "rust1", since = "1.0.0")]
1416

src/libcore/num/i64.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for signed 64-bits integers (`i64` type)
11+
//! The 64-bit signed integer type.
12+
//!
13+
//! *[See also the `i64` primitive type](../primitive.i64.html).*
1214
1315
#![stable(feature = "rust1", since = "1.0.0")]
1416

src/libcore/num/i8.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for signed 8-bits integers (`i8` type)
11+
//! The 8-bit signed integer type.
12+
//!
13+
//! *[See also the `i8` primitive type](../primitive.i8.html).*
1214
1315
#![stable(feature = "rust1", since = "1.0.0")]
1416

src/libcore/num/isize.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for pointer-sized signed integers (`isize` type)
11+
//! The pointer-sized signed integer type.
12+
//!
13+
//! *[See also the `isize` primitive type](../primitive.isize.html).*
1214
1315
#![stable(feature = "rust1", since = "1.0.0")]
1416

src/libcore/num/u16.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for unsigned 16-bits integers (`u16` type)
11+
//! The 16-bit unsigned integer type.
12+
//!
13+
//! *[See also the `u16` primitive type](../primitive.u16.html).*
1214
1315
#![stable(feature = "rust1", since = "1.0.0")]
1416

src/libcore/num/u32.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for unsigned 32-bits integers (`u32` type)
11+
//! The 32-bit unsigned integer type.
12+
//!
13+
//! *[See also the `u32` primitive type](../primitive.u32.html).*
1214
1315
#![stable(feature = "rust1", since = "1.0.0")]
1416

src/libcore/num/u64.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for unsigned 64-bits integer (`u64` type)
11+
//! The 64-bit unsigned integer type.
12+
//!
13+
//! *[See also the `u64` primitive type](../primitive.u64.html).*
1214
1315
#![stable(feature = "rust1", since = "1.0.0")]
1416

src/libcore/num/u8.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for unsigned 8-bits integers (`u8` type)
11+
//! The 8-bit unsigned integer type.
12+
//!
13+
//! *[See also the `u8` primitive type](../primitive.u8.html).*
1214
1315
#![stable(feature = "rust1", since = "1.0.0")]
1416

src/libcore/num/usize.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for pointer-sized unsigned integers (`usize` type)
11+
//! The pointer-sized unsigned integer type.
12+
//!
13+
//! *[See also the `usize` primitive type](../primitive.usize.html).*
1214
1315
#![stable(feature = "rust1", since = "1.0.0")]
1416

0 commit comments

Comments
 (0)