@@ -1738,16 +1738,16 @@ extern "rust-intrinsic" {
1738
1738
/// y < 0 or y >= N, where N is the width of T in bits.
1739
1739
///
1740
1740
/// The stabilized versions of this intrinsic are available on the integer
1741
- /// primitives via the `wrapping_shl ` method. For example,
1742
- /// [`std::u32::wrapping_shl `](../../std/primitive.u32.html#method.wrapping_shl )
1741
+ /// primitives via the `checked_shl ` method. For example,
1742
+ /// [`std::u32::checked_shl `](../../std/primitive.u32.html#method.checked_shl )
1743
1743
#[ rustc_const_stable( feature = "const_int_unchecked" , since = "1.40.0" ) ]
1744
1744
pub fn unchecked_shl < T > ( x : T , y : T ) -> T ;
1745
1745
/// Performs an unchecked right shift, resulting in undefined behavior when
1746
1746
/// y < 0 or y >= N, where N is the width of T in bits.
1747
1747
///
1748
1748
/// The stabilized versions of this intrinsic are available on the integer
1749
- /// primitives via the `wrapping_shr ` method. For example,
1750
- /// [`std::u32::wrapping_shr `](../../std/primitive.u32.html#method.wrapping_shr )
1749
+ /// primitives via the `checked_shr ` method. For example,
1750
+ /// [`std::u32::checked_shr `](../../std/primitive.u32.html#method.checked_shr )
1751
1751
#[ rustc_const_stable( feature = "const_int_unchecked" , since = "1.40.0" ) ]
1752
1752
pub fn unchecked_shr < T > ( x : T , y : T ) -> T ;
1753
1753
@@ -1785,22 +1785,22 @@ extern "rust-intrinsic" {
1785
1785
/// Returns (a + b) mod 2<sup>N</sup>, where N is the width of T in bits.
1786
1786
///
1787
1787
/// The stabilized versions of this intrinsic are available on the integer
1788
- /// primitives via the `wrapping_add ` method. For example,
1789
- /// [`std::u32::wrapping_add `](../../std/primitive.u32.html#method.wrapping_add )
1788
+ /// primitives via the `checked_add ` method. For example,
1789
+ /// [`std::u32::checked_add `](../../std/primitive.u32.html#method.checked_add )
1790
1790
#[ rustc_const_stable( feature = "const_int_wrapping" , since = "1.40.0" ) ]
1791
1791
pub fn wrapping_add < T > ( a : T , b : T ) -> T ;
1792
1792
/// Returns (a - b) mod 2<sup>N</sup>, where N is the width of T in bits.
1793
1793
///
1794
1794
/// The stabilized versions of this intrinsic are available on the integer
1795
- /// primitives via the `wrapping_sub ` method. For example,
1796
- /// [`std::u32::wrapping_sub `](../../std/primitive.u32.html#method.wrapping_sub )
1795
+ /// primitives via the `checked_sub ` method. For example,
1796
+ /// [`std::u32::checked_sub `](../../std/primitive.u32.html#method.checked_sub )
1797
1797
#[ rustc_const_stable( feature = "const_int_wrapping" , since = "1.40.0" ) ]
1798
1798
pub fn wrapping_sub < T > ( a : T , b : T ) -> T ;
1799
1799
/// Returns (a * b) mod 2<sup>N</sup>, where N is the width of T in bits.
1800
1800
///
1801
1801
/// The stabilized versions of this intrinsic are available on the integer
1802
- /// primitives via the `wrapping_mul ` method. For example,
1803
- /// [`std::u32::wrapping_mul `](../../std/primitive.u32.html#method.wrapping_mul )
1802
+ /// primitives via the `checked_mul ` method. For example,
1803
+ /// [`std::u32::checked_mul `](../../std/primitive.u32.html#method.checked_mul )
1804
1804
#[ rustc_const_stable( feature = "const_int_wrapping" , since = "1.40.0" ) ]
1805
1805
pub fn wrapping_mul < T > ( a : T , b : T ) -> T ;
1806
1806
0 commit comments