//! Operations and constants for architecture-sized signed integers (`int` type)
-#![unstable]
+#![stable]
#![doc(primitive = "int")]
#[cfg(target_word_size = "32")] int_module! { int, 32 }
#[cfg(target_word_size = "64")] int_module! { int, 64 }
-
// FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
// calling the `Bounded::min_value` function.
-#[unstable]
+#[stable]
pub const MIN: $T = (-1 as $T) << (BITS - 1);
// FIXME(#9837): Compute MIN like this so the high bits that shouldn't exist are 0.
// FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
// calling the `Bounded::max_value` function.
-#[unstable]
+#[stable]
pub const MAX: $T = !MIN;
) }
-
//! Operations and constants for architecture-sized unsigned integers (`uint` type)
-#![unstable]
+#![stable]
#![doc(primitive = "uint")]
uint_module! { uint, int, ::int::BITS }
-
#[unstable]
pub const BYTES : uint = ($bits / 8);
-#[unstable]
+#[stable]
pub const MIN: $T = 0 as $T;
-#[unstable]
+#[stable]
pub const MAX: $T = 0 as $T - 1 as $T;
) }
-
//! Operations and constants for architecture-sized signed integers (`int` type)
-#![unstable]
+#![stable]
#![doc(primitive = "int")]
pub use core::int::{BITS, BYTES, MIN, MAX};
//! Operations and constants for architecture-sized unsigned integers (`uint` type)
-#![unstable]
+#![stable]
#![doc(primitive = "uint")]
pub use core::uint::{BITS, BYTES, MIN, MAX};