@@ -1739,19 +1739,19 @@ extern "rust-intrinsic" {
1739
1739
pub fn mul_with_overflow < T : Copy > ( x : T , y : T ) -> ( T , bool ) ;
1740
1740
1741
1741
/// Performs an exact division, resulting in undefined behavior where
1742
- /// `x % y != 0` or `y == 0` or `x == T::min_value() && y == -1`
1742
+ /// `x % y != 0` or `y == 0` or `x == T::MIN && y == -1`
1743
1743
pub fn exact_div < T : Copy > ( x : T , y : T ) -> T ;
1744
1744
1745
1745
/// Performs an unchecked division, resulting in undefined behavior
1746
- /// where y = 0 or x = `T::min_value() ` and y = -1
1746
+ /// 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_div` method. For example,
1750
1750
/// [`std::u32::checked_div`](../../std/primitive.u32.html#method.checked_div)
1751
1751
#[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1752
1752
pub fn unchecked_div < T : Copy > ( x : T , y : T ) -> T ;
1753
1753
/// Returns the remainder of an unchecked division, resulting in
1754
- /// undefined behavior where y = 0 or x = `T::min_value() ` and y = -1
1754
+ /// undefined behavior where y = 0 or x = `T::MIN ` and y = -1
1755
1755
///
1756
1756
/// The stabilized versions of this intrinsic are available on the integer
1757
1757
/// primitives via the `checked_rem` method. For example,
@@ -1777,17 +1777,17 @@ extern "rust-intrinsic" {
1777
1777
pub fn unchecked_shr < T : Copy > ( x : T , y : T ) -> T ;
1778
1778
1779
1779
/// Returns the result of an unchecked addition, resulting in
1780
- /// undefined behavior when `x + y > T::max_value() ` or `x + y < T::min_value() `.
1780
+ /// undefined behavior when `x + y > T::MAX ` or `x + y < T::MIN `.
1781
1781
#[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1782
1782
pub fn unchecked_add < T : Copy > ( x : T , y : T ) -> T ;
1783
1783
1784
1784
/// Returns the result of an unchecked subtraction, resulting in
1785
- /// undefined behavior when `x - y > T::max_value() ` or `x - y < T::min_value() `.
1785
+ /// undefined behavior when `x - y > T::MAX ` or `x - y < T::MIN `.
1786
1786
#[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1787
1787
pub fn unchecked_sub < T : Copy > ( x : T , y : T ) -> T ;
1788
1788
1789
1789
/// Returns the result of an unchecked multiplication, resulting in
1790
- /// undefined behavior when `x * y > T::max_value() ` or `x * y < T::min_value() `.
1790
+ /// undefined behavior when `x * y > T::MAX ` or `x * y < T::MIN `.
1791
1791
#[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1792
1792
pub fn unchecked_mul < T : Copy > ( x : T , y : T ) -> T ;
1793
1793
0 commit comments