@@ -1731,19 +1731,19 @@ extern "rust-intrinsic" {
1731
1731
pub fn mul_with_overflow < T > ( x : T , y : T ) -> ( T , bool ) ;
1732
1732
1733
1733
/// Performs an exact division, resulting in undefined behavior where
1734
- /// `x % y != 0` or `y == 0` or `x == T::min_value() && y == -1`
1734
+ /// `x % y != 0` or `y == 0` or `x == T::MIN && y == -1`
1735
1735
pub fn exact_div < T > ( x : T , y : T ) -> T ;
1736
1736
1737
1737
/// Performs an unchecked division, resulting in undefined behavior
1738
- /// where y = 0 or x = `T::min_value() ` and y = -1
1738
+ /// where y = 0 or x = `T::MIN ` and y = -1
1739
1739
///
1740
1740
/// The stabilized versions of this intrinsic are available on the integer
1741
1741
/// primitives via the `checked_div` method. For example,
1742
1742
/// [`std::u32::checked_div`](../../std/primitive.u32.html#method.checked_div)
1743
1743
#[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1744
1744
pub fn unchecked_div < T > ( x : T , y : T ) -> T ;
1745
1745
/// Returns the remainder of an unchecked division, resulting in
1746
- /// undefined behavior where y = 0 or x = `T::min_value() ` and y = -1
1746
+ /// undefined behavior where y = 0 or x = `T::MIN ` and y = -1
1747
1747
///
1748
1748
/// The stabilized versions of this intrinsic are available on the integer
1749
1749
/// primitives via the `checked_rem` method. For example,
@@ -1769,17 +1769,17 @@ extern "rust-intrinsic" {
1769
1769
pub fn unchecked_shr < T > ( x : T , y : T ) -> T ;
1770
1770
1771
1771
/// Returns the result of an unchecked addition, resulting in
1772
- /// undefined behavior when `x + y > T::max_value() ` or `x + y < T::min_value() `.
1772
+ /// undefined behavior when `x + y > T::MAX ` or `x + y < T::MIN `.
1773
1773
#[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1774
1774
pub fn unchecked_add < T > ( x : T , y : T ) -> T ;
1775
1775
1776
1776
/// Returns the result of an unchecked subtraction, resulting in
1777
- /// undefined behavior when `x - y > T::max_value() ` or `x - y < T::min_value() `.
1777
+ /// undefined behavior when `x - y > T::MAX ` or `x - y < T::MIN `.
1778
1778
#[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1779
1779
pub fn unchecked_sub < T > ( x : T , y : T ) -> T ;
1780
1780
1781
1781
/// Returns the result of an unchecked multiplication, resulting in
1782
- /// undefined behavior when `x * y > T::max_value() ` or `x * y < T::min_value() `.
1782
+ /// undefined behavior when `x * y > T::MAX ` or `x * y < T::MIN `.
1783
1783
#[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1784
1784
pub fn unchecked_mul < T > ( x : T , y : T ) -> T ;
1785
1785
0 commit comments