Skip to content

Commit 4735829

Browse files
authored
Rollup merge of #107654 - pitaj:reword-integral-modules, r=thomcc
reword descriptions of the deprecated int modules Based on recommendation by `@est31` here: #107587 (comment) This is meant to make it more clear, when looking at the `std` or `core` docs, that these are deprecated modules - not deprecated integer types (a common misunderstanding). Before: ![image](https://user-images.githubusercontent.com/803701/216733011-fabc22e1-4e77-4a47-96e3-a765ac4690b6.png) After: ![image](https://user-images.githubusercontent.com/803701/216733660-02071ced-883d-4ab5-8c0a-d28547d1d5db.png)
2 parents 7740f9a + d105234 commit 4735829

File tree

12 files changed

+12
-36
lines changed

12 files changed

+12
-36
lines changed

library/core/src/num/shells/i128.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//! Constants for the 128-bit signed integer type.
2-
//!
3-
//! *[See also the `i128` primitive type][i128].*
1+
//! Redundant constants module for the [`i128` primitive type][i128].
42
//!
53
//! New code should use the associated constants directly on the primitive type.
64

library/core/src/num/shells/i16.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//! Constants for the 16-bit signed integer type.
2-
//!
3-
//! *[See also the `i16` primitive type][i16].*
1+
//! Redundant constants module for the [`i16` primitive type][i16].
42
//!
53
//! New code should use the associated constants directly on the primitive type.
64

library/core/src/num/shells/i32.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//! Constants for the 32-bit signed integer type.
2-
//!
3-
//! *[See also the `i32` primitive type][i32].*
1+
//! Redundant constants module for the [`i32` primitive type][i32].
42
//!
53
//! New code should use the associated constants directly on the primitive type.
64

library/core/src/num/shells/i64.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//! Constants for the 64-bit signed integer type.
2-
//!
3-
//! *[See also the `i64` primitive type][i64].*
1+
//! Redundant constants module for the [`i64` primitive type][i64].
42
//!
53
//! New code should use the associated constants directly on the primitive type.
64

library/core/src/num/shells/i8.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//! Constants for the 8-bit signed integer type.
2-
//!
3-
//! *[See also the `i8` primitive type][i8].*
1+
//! Redundant constants module for the [`i8` primitive type][i8].
42
//!
53
//! New code should use the associated constants directly on the primitive type.
64

library/core/src/num/shells/isize.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//! Constants for the pointer-sized signed integer type.
2-
//!
3-
//! *[See also the `isize` primitive type][isize].*
1+
//! Redundant constants module for the [`isize` primitive type][isize].
42
//!
53
//! New code should use the associated constants directly on the primitive type.
64

library/core/src/num/shells/u128.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//! Constants for the 128-bit unsigned integer type.
2-
//!
3-
//! *[See also the `u128` primitive type][u128].*
1+
//! Redundant constants module for the [`u128` primitive type][u128].
42
//!
53
//! New code should use the associated constants directly on the primitive type.
64

library/core/src/num/shells/u16.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//! Constants for the 16-bit unsigned integer type.
2-
//!
3-
//! *[See also the `u16` primitive type][u16].*
1+
//! Redundant constants module for the [`i16` primitive type][i16].
42
//!
53
//! New code should use the associated constants directly on the primitive type.
64

library/core/src/num/shells/u32.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//! Constants for the 32-bit unsigned integer type.
2-
//!
3-
//! *[See also the `u32` primitive type][u32].*
1+
//! Redundant constants module for the [`u32` primitive type][u32].
42
//!
53
//! New code should use the associated constants directly on the primitive type.
64

library/core/src/num/shells/u64.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//! Constants for the 64-bit unsigned integer type.
2-
//!
3-
//! *[See also the `u64` primitive type][u64].*
1+
//! Redundant constants module for the [`u64` primitive type][u64].
42
//!
53
//! New code should use the associated constants directly on the primitive type.
64

library/core/src/num/shells/u8.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//! Constants for the 8-bit unsigned integer type.
2-
//!
3-
//! *[See also the `u8` primitive type][u8].*
1+
//! Redundant constants module for the [`u8` primitive type][u8].
42
//!
53
//! New code should use the associated constants directly on the primitive type.
64

library/core/src/num/shells/usize.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//! Constants for the pointer-sized unsigned integer type.
2-
//!
3-
//! *[See also the `usize` primitive type][usize].*
1+
//! Redundant constants module for the [`usize` primitive type][usize].
42
//!
53
//! New code should use the associated constants directly on the primitive type.
64

0 commit comments

Comments
 (0)