@@ -1656,15 +1656,15 @@ extern "rust-intrinsic" {
1656
1656
///
1657
1657
/// The stabilized versions of this intrinsic are available on the integer
1658
1658
/// primitives via the `count_ones` method. For example,
1659
- /// [`std::u32::count_ones`](../../std/primitive. u32.html#method. count_ones)
1659
+ /// [`std::u32::count_ones`](u32:: count_ones)
1660
1660
#[ rustc_const_stable( feature = "const_ctpop" , since = "1.40.0" ) ]
1661
1661
pub fn ctpop < T : Copy > ( x : T ) -> T ;
1662
1662
1663
1663
/// Returns the number of leading unset bits (zeroes) in an integer type `T`.
1664
1664
///
1665
1665
/// The stabilized versions of this intrinsic are available on the integer
1666
1666
/// primitives via the `leading_zeros` method. For example,
1667
- /// [`std::u32::leading_zeros`](../../std/primitive. u32.html#method. leading_zeros)
1667
+ /// [`std::u32::leading_zeros`](u32:: leading_zeros)
1668
1668
///
1669
1669
/// # Examples
1670
1670
///
@@ -1715,7 +1715,7 @@ extern "rust-intrinsic" {
1715
1715
///
1716
1716
/// The stabilized versions of this intrinsic are available on the integer
1717
1717
/// primitives via the `trailing_zeros` method. For example,
1718
- /// [`std::u32::trailing_zeros`](../../std/primitive. u32.html#method. trailing_zeros)
1718
+ /// [`std::u32::trailing_zeros`](u32:: trailing_zeros)
1719
1719
///
1720
1720
/// # Examples
1721
1721
///
@@ -1766,39 +1766,39 @@ extern "rust-intrinsic" {
1766
1766
///
1767
1767
/// The stabilized versions of this intrinsic are available on the integer
1768
1768
/// primitives via the `swap_bytes` method. For example,
1769
- /// [`std::u32::swap_bytes`](../../std/primitive. u32.html#method. swap_bytes)
1769
+ /// [`std::u32::swap_bytes`](u32:: swap_bytes)
1770
1770
#[ rustc_const_stable( feature = "const_bswap" , since = "1.40.0" ) ]
1771
1771
pub fn bswap < T : Copy > ( x : T ) -> T ;
1772
1772
1773
1773
/// Reverses the bits in an integer type `T`.
1774
1774
///
1775
1775
/// The stabilized versions of this intrinsic are available on the integer
1776
1776
/// primitives via the `reverse_bits` method. For example,
1777
- /// [`std::u32::reverse_bits`](../../std/primitive. u32.html#method. reverse_bits)
1777
+ /// [`std::u32::reverse_bits`](u32:: reverse_bits)
1778
1778
#[ rustc_const_stable( feature = "const_bitreverse" , since = "1.40.0" ) ]
1779
1779
pub fn bitreverse < T : Copy > ( x : T ) -> T ;
1780
1780
1781
1781
/// Performs checked integer addition.
1782
1782
///
1783
1783
/// The stabilized versions of this intrinsic are available on the integer
1784
1784
/// primitives via the `overflowing_add` method. For example,
1785
- /// [`std::u32::overflowing_add`](../../std/primitive. u32.html#method. overflowing_add)
1785
+ /// [`std::u32::overflowing_add`](u32:: overflowing_add)
1786
1786
#[ rustc_const_stable( feature = "const_int_overflow" , since = "1.40.0" ) ]
1787
1787
pub fn add_with_overflow < T : Copy > ( x : T , y : T ) -> ( T , bool ) ;
1788
1788
1789
1789
/// Performs checked integer subtraction
1790
1790
///
1791
1791
/// The stabilized versions of this intrinsic are available on the integer
1792
1792
/// primitives via the `overflowing_sub` method. For example,
1793
- /// [`std::u32::overflowing_sub`](../../std/primitive. u32.html#method. overflowing_sub)
1793
+ /// [`std::u32::overflowing_sub`](u32:: overflowing_sub)
1794
1794
#[ rustc_const_stable( feature = "const_int_overflow" , since = "1.40.0" ) ]
1795
1795
pub fn sub_with_overflow < T : Copy > ( x : T , y : T ) -> ( T , bool ) ;
1796
1796
1797
1797
/// Performs checked integer multiplication
1798
1798
///
1799
1799
/// The stabilized versions of this intrinsic are available on the integer
1800
1800
/// primitives via the `overflowing_mul` method. For example,
1801
- /// [`std::u32::overflowing_mul`](../../std/primitive. u32.html#method. overflowing_mul)
1801
+ /// [`std::u32::overflowing_mul`](u32:: overflowing_mul)
1802
1802
#[ rustc_const_stable( feature = "const_int_overflow" , since = "1.40.0" ) ]
1803
1803
pub fn mul_with_overflow < T : Copy > ( x : T , y : T ) -> ( T , bool ) ;
1804
1804
@@ -1813,15 +1813,15 @@ extern "rust-intrinsic" {
1813
1813
///
1814
1814
/// Safe wrappers for this intrinsic are available on the integer
1815
1815
/// primitives via the `checked_div` method. For example,
1816
- /// [`std::u32::checked_div`](../../std/primitive. u32.html#method. checked_div)
1816
+ /// [`std::u32::checked_div`](u32:: checked_div)
1817
1817
#[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1818
1818
pub fn unchecked_div < T : Copy > ( x : T , y : T ) -> T ;
1819
1819
/// Returns the remainder of an unchecked division, resulting in
1820
1820
/// undefined behavior where y = 0 or x = `T::MIN` and y = -1
1821
1821
///
1822
1822
/// Safe wrappers for this intrinsic are available on the integer
1823
1823
/// primitives via the `checked_rem` method. For example,
1824
- /// [`std::u32::checked_rem`](../../std/primitive. u32.html#method. checked_rem)
1824
+ /// [`std::u32::checked_rem`](u32:: checked_rem)
1825
1825
#[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1826
1826
pub fn unchecked_rem < T : Copy > ( x : T , y : T ) -> T ;
1827
1827
@@ -1830,15 +1830,15 @@ extern "rust-intrinsic" {
1830
1830
///
1831
1831
/// Safe wrappers for this intrinsic are available on the integer
1832
1832
/// primitives via the `checked_shl` method. For example,
1833
- /// [`std::u32::checked_shl`](../../std/primitive. u32.html#method. checked_shl)
1833
+ /// [`std::u32::checked_shl`](u32:: checked_shl)
1834
1834
#[ rustc_const_stable( feature = "const_int_unchecked" , since = "1.40.0" ) ]
1835
1835
pub fn unchecked_shl < T : Copy > ( x : T , y : T ) -> T ;
1836
1836
/// Performs an unchecked right shift, resulting in undefined behavior when
1837
1837
/// y < 0 or y >= N, where N is the width of T in bits.
1838
1838
///
1839
1839
/// Safe wrappers for this intrinsic are available on the integer
1840
1840
/// primitives via the `checked_shr` method. For example,
1841
- /// [`std::u32::checked_shr`](../../std/primitive. u32.html#method. checked_shr)
1841
+ /// [`std::u32::checked_shr`](u32:: checked_shr)
1842
1842
#[ rustc_const_stable( feature = "const_int_unchecked" , since = "1.40.0" ) ]
1843
1843
pub fn unchecked_shr < T : Copy > ( x : T , y : T ) -> T ;
1844
1844
@@ -1867,52 +1867,52 @@ extern "rust-intrinsic" {
1867
1867
///
1868
1868
/// The stabilized versions of this intrinsic are available on the integer
1869
1869
/// primitives via the `rotate_left` method. For example,
1870
- /// [`std::u32::rotate_left`](../../std/primitive. u32.html#method. rotate_left)
1870
+ /// [`std::u32::rotate_left`](u32:: rotate_left)
1871
1871
#[ rustc_const_stable( feature = "const_int_rotate" , since = "1.40.0" ) ]
1872
1872
pub fn rotate_left < T : Copy > ( x : T , y : T ) -> T ;
1873
1873
1874
1874
/// Performs rotate right.
1875
1875
///
1876
1876
/// The stabilized versions of this intrinsic are available on the integer
1877
1877
/// primitives via the `rotate_right` method. For example,
1878
- /// [`std::u32::rotate_right`](../../std/primitive. u32.html#method. rotate_right)
1878
+ /// [`std::u32::rotate_right`](u32:: rotate_right)
1879
1879
#[ rustc_const_stable( feature = "const_int_rotate" , since = "1.40.0" ) ]
1880
1880
pub fn rotate_right < T : Copy > ( x : T , y : T ) -> T ;
1881
1881
1882
1882
/// Returns (a + b) mod 2<sup>N</sup>, where N is the width of T in bits.
1883
1883
///
1884
1884
/// The stabilized versions of this intrinsic are available on the integer
1885
1885
/// primitives via the `checked_add` method. For example,
1886
- /// [`std::u32::checked_add`](../../std/primitive. u32.html#method. checked_add)
1886
+ /// [`std::u32::checked_add`](u32:: checked_add)
1887
1887
#[ rustc_const_stable( feature = "const_int_wrapping" , since = "1.40.0" ) ]
1888
1888
pub fn wrapping_add < T : Copy > ( a : T , b : T ) -> T ;
1889
1889
/// Returns (a - b) mod 2<sup>N</sup>, where N is the width of T in bits.
1890
1890
///
1891
1891
/// The stabilized versions of this intrinsic are available on the integer
1892
1892
/// primitives via the `checked_sub` method. For example,
1893
- /// [`std::u32::checked_sub`](../../std/primitive. u32.html#method. checked_sub)
1893
+ /// [`std::u32::checked_sub`](u32:: checked_sub)
1894
1894
#[ rustc_const_stable( feature = "const_int_wrapping" , since = "1.40.0" ) ]
1895
1895
pub fn wrapping_sub < T : Copy > ( a : T , b : T ) -> T ;
1896
1896
/// Returns (a * b) mod 2<sup>N</sup>, where N is the width of T in bits.
1897
1897
///
1898
1898
/// The stabilized versions of this intrinsic are available on the integer
1899
1899
/// primitives via the `checked_mul` method. For example,
1900
- /// [`std::u32::checked_mul`](../../std/primitive. u32.html#method. checked_mul)
1900
+ /// [`std::u32::checked_mul`](u32:: checked_mul)
1901
1901
#[ rustc_const_stable( feature = "const_int_wrapping" , since = "1.40.0" ) ]
1902
1902
pub fn wrapping_mul < T : Copy > ( a : T , b : T ) -> T ;
1903
1903
1904
1904
/// Computes `a + b`, while saturating at numeric bounds.
1905
1905
///
1906
1906
/// The stabilized versions of this intrinsic are available on the integer
1907
1907
/// primitives via the `saturating_add` method. For example,
1908
- /// [`std::u32::saturating_add`](../../std/primitive. u32.html#method. saturating_add)
1908
+ /// [`std::u32::saturating_add`](u32:: saturating_add)
1909
1909
#[ rustc_const_stable( feature = "const_int_saturating" , since = "1.40.0" ) ]
1910
1910
pub fn saturating_add < T : Copy > ( a : T , b : T ) -> T ;
1911
1911
/// Computes `a - b`, while saturating at numeric bounds.
1912
1912
///
1913
1913
/// The stabilized versions of this intrinsic are available on the integer
1914
1914
/// primitives via the `saturating_sub` method. For example,
1915
- /// [`std::u32::saturating_sub`](../../std/primitive. u32.html#method. saturating_sub)
1915
+ /// [`std::u32::saturating_sub`](u32:: saturating_sub)
1916
1916
#[ rustc_const_stable( feature = "const_int_saturating" , since = "1.40.0" ) ]
1917
1917
pub fn saturating_sub < T : Copy > ( a : T , b : T ) -> T ;
1918
1918
0 commit comments