Skip to content

Commit 0869274

Browse files
committed
Add notice about using new consts in new code on int modules
1 parent c67de25 commit 0869274

File tree

12 files changed

+36
-0
lines changed

12 files changed

+36
-0
lines changed

src/libcore/num/i128.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! The 128-bit signed integer type.
22
//!
33
//! *[See also the `i128` primitive type](../../std/primitive.i128.html).*
4+
//!
5+
//! Although using these constants won’t cause compilation warnings,
6+
//! new code should use the associated constants directly on the primitive type.
47
58
#![stable(feature = "i128", since = "1.26.0")]
69

src/libcore/num/i16.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! The 16-bit signed integer type.
22
//!
33
//! *[See also the `i16` primitive type](../../std/primitive.i16.html).*
4+
//!
5+
//! Although using these constants won’t cause compilation warnings,
6+
//! new code should use the associated constants directly on the primitive type.
47
58
#![stable(feature = "rust1", since = "1.0.0")]
69

src/libcore/num/i32.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! The 32-bit signed integer type.
22
//!
33
//! *[See also the `i32` primitive type](../../std/primitive.i32.html).*
4+
//!
5+
//! Although using these constants won’t cause compilation warnings,
6+
//! new code should use the associated constants directly on the primitive type.
47
58
#![stable(feature = "rust1", since = "1.0.0")]
69

src/libcore/num/i64.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! The 64-bit signed integer type.
22
//!
33
//! *[See also the `i64` primitive type](../../std/primitive.i64.html).*
4+
//!
5+
//! Although using these constants won’t cause compilation warnings,
6+
//! new code should use the associated constants directly on the primitive type.
47
58
#![stable(feature = "rust1", since = "1.0.0")]
69

src/libcore/num/i8.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! The 8-bit signed integer type.
22
//!
33
//! *[See also the `i8` primitive type](../../std/primitive.i8.html).*
4+
//!
5+
//! Although using these constants won’t cause compilation warnings,
6+
//! new code should use the associated constants directly on the primitive type.
47
58
#![stable(feature = "rust1", since = "1.0.0")]
69

src/libcore/num/isize.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! The pointer-sized signed integer type.
22
//!
33
//! *[See also the `isize` primitive type](../../std/primitive.isize.html).*
4+
//!
5+
//! Although using these constants won’t cause compilation warnings,
6+
//! new code should use the associated constants directly on the primitive type.
47
58
#![stable(feature = "rust1", since = "1.0.0")]
69

src/libcore/num/u128.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! The 128-bit unsigned integer type.
22
//!
33
//! *[See also the `u128` primitive type](../../std/primitive.u128.html).*
4+
//!
5+
//! Although using these constants won’t cause compilation warnings,
6+
//! new code should use the associated constants directly on the primitive type.
47
58
#![stable(feature = "i128", since = "1.26.0")]
69
int_module! { u128, #[stable(feature = "i128", since="1.26.0")] }

src/libcore/num/u16.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! The 16-bit unsigned integer type.
22
//!
33
//! *[See also the `u16` primitive type](../../std/primitive.u16.html).*
4+
//!
5+
//! Although using these constants won’t cause compilation warnings,
6+
//! new code should use the associated constants directly on the primitive type.
47
58
#![stable(feature = "rust1", since = "1.0.0")]
69

src/libcore/num/u32.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! The 32-bit unsigned integer type.
22
//!
33
//! *[See also the `u32` primitive type](../../std/primitive.u32.html).*
4+
//!
5+
//! Although using these constants won’t cause compilation warnings,
6+
//! new code should use the associated constants directly on the primitive type.
47
58
#![stable(feature = "rust1", since = "1.0.0")]
69

src/libcore/num/u64.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! The 64-bit unsigned integer type.
22
//!
33
//! *[See also the `u64` primitive type](../../std/primitive.u64.html).*
4+
//!
5+
//! Although using these constants won’t cause compilation warnings,
6+
//! new code should use the associated constants directly on the primitive type.
47
58
#![stable(feature = "rust1", since = "1.0.0")]
69

src/libcore/num/u8.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! The 8-bit unsigned integer type.
22
//!
33
//! *[See also the `u8` primitive type](../../std/primitive.u8.html).*
4+
//!
5+
//! Although using these constants won’t cause compilation warnings,
6+
//! new code should use the associated constants directly on the primitive type.
47
58
#![stable(feature = "rust1", since = "1.0.0")]
69

src/libcore/num/usize.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! The pointer-sized unsigned integer type.
22
//!
33
//! *[See also the `usize` primitive type](../../std/primitive.usize.html).*
4+
//!
5+
//! Although using these constants won’t cause compilation warnings,
6+
//! new code should use the associated constants directly on the primitive type.
47
58
#![stable(feature = "rust1", since = "1.0.0")]
69

0 commit comments

Comments
 (0)