Skip to content

Commit

Permalink
Rollup merge of #107654 - pitaj:reword-integral-modules, r=thomcc
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Dylan-DPC authored Feb 13, 2023
2 parents 7740f9a + d105234 commit 4735829
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 36 deletions.
4 changes: 1 addition & 3 deletions library/core/src/num/shells/i128.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Constants for the 128-bit signed integer type.
//!
//! *[See also the `i128` primitive type][i128].*
//! Redundant constants module for the [`i128` primitive type][i128].
//!
//! New code should use the associated constants directly on the primitive type.
Expand Down
4 changes: 1 addition & 3 deletions library/core/src/num/shells/i16.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Constants for the 16-bit signed integer type.
//!
//! *[See also the `i16` primitive type][i16].*
//! Redundant constants module for the [`i16` primitive type][i16].
//!
//! New code should use the associated constants directly on the primitive type.
Expand Down
4 changes: 1 addition & 3 deletions library/core/src/num/shells/i32.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Constants for the 32-bit signed integer type.
//!
//! *[See also the `i32` primitive type][i32].*
//! Redundant constants module for the [`i32` primitive type][i32].
//!
//! New code should use the associated constants directly on the primitive type.
Expand Down
4 changes: 1 addition & 3 deletions library/core/src/num/shells/i64.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Constants for the 64-bit signed integer type.
//!
//! *[See also the `i64` primitive type][i64].*
//! Redundant constants module for the [`i64` primitive type][i64].
//!
//! New code should use the associated constants directly on the primitive type.
Expand Down
4 changes: 1 addition & 3 deletions library/core/src/num/shells/i8.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Constants for the 8-bit signed integer type.
//!
//! *[See also the `i8` primitive type][i8].*
//! Redundant constants module for the [`i8` primitive type][i8].
//!
//! New code should use the associated constants directly on the primitive type.
Expand Down
4 changes: 1 addition & 3 deletions library/core/src/num/shells/isize.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Constants for the pointer-sized signed integer type.
//!
//! *[See also the `isize` primitive type][isize].*
//! Redundant constants module for the [`isize` primitive type][isize].
//!
//! New code should use the associated constants directly on the primitive type.
Expand Down
4 changes: 1 addition & 3 deletions library/core/src/num/shells/u128.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Constants for the 128-bit unsigned integer type.
//!
//! *[See also the `u128` primitive type][u128].*
//! Redundant constants module for the [`u128` primitive type][u128].
//!
//! New code should use the associated constants directly on the primitive type.
Expand Down
4 changes: 1 addition & 3 deletions library/core/src/num/shells/u16.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Constants for the 16-bit unsigned integer type.
//!
//! *[See also the `u16` primitive type][u16].*
//! Redundant constants module for the [`i16` primitive type][i16].
//!
//! New code should use the associated constants directly on the primitive type.
Expand Down
4 changes: 1 addition & 3 deletions library/core/src/num/shells/u32.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Constants for the 32-bit unsigned integer type.
//!
//! *[See also the `u32` primitive type][u32].*
//! Redundant constants module for the [`u32` primitive type][u32].
//!
//! New code should use the associated constants directly on the primitive type.
Expand Down
4 changes: 1 addition & 3 deletions library/core/src/num/shells/u64.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Constants for the 64-bit unsigned integer type.
//!
//! *[See also the `u64` primitive type][u64].*
//! Redundant constants module for the [`u64` primitive type][u64].
//!
//! New code should use the associated constants directly on the primitive type.
Expand Down
4 changes: 1 addition & 3 deletions library/core/src/num/shells/u8.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Constants for the 8-bit unsigned integer type.
//!
//! *[See also the `u8` primitive type][u8].*
//! Redundant constants module for the [`u8` primitive type][u8].
//!
//! New code should use the associated constants directly on the primitive type.
Expand Down
4 changes: 1 addition & 3 deletions library/core/src/num/shells/usize.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Constants for the pointer-sized unsigned integer type.
//!
//! *[See also the `usize` primitive type][usize].*
//! Redundant constants module for the [`usize` primitive type][usize].
//!
//! New code should use the associated constants directly on the primitive type.
Expand Down

0 comments on commit 4735829

Please sign in to comment.