Skip to content

Commit a929738

Browse files
committed
Use intra-doc links for u32::*
1 parent 7b5ec9e commit a929738

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

library/core/src/intrinsics.rs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,15 +1656,15 @@ extern "rust-intrinsic" {
16561656
///
16571657
/// The stabilized versions of this intrinsic are available on the integer
16581658
/// 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)
16601660
#[rustc_const_stable(feature = "const_ctpop", since = "1.40.0")]
16611661
pub fn ctpop<T: Copy>(x: T) -> T;
16621662

16631663
/// Returns the number of leading unset bits (zeroes) in an integer type `T`.
16641664
///
16651665
/// The stabilized versions of this intrinsic are available on the integer
16661666
/// 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)
16681668
///
16691669
/// # Examples
16701670
///
@@ -1715,7 +1715,7 @@ extern "rust-intrinsic" {
17151715
///
17161716
/// The stabilized versions of this intrinsic are available on the integer
17171717
/// 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)
17191719
///
17201720
/// # Examples
17211721
///
@@ -1766,39 +1766,39 @@ extern "rust-intrinsic" {
17661766
///
17671767
/// The stabilized versions of this intrinsic are available on the integer
17681768
/// 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)
17701770
#[rustc_const_stable(feature = "const_bswap", since = "1.40.0")]
17711771
pub fn bswap<T: Copy>(x: T) -> T;
17721772

17731773
/// Reverses the bits in an integer type `T`.
17741774
///
17751775
/// The stabilized versions of this intrinsic are available on the integer
17761776
/// 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)
17781778
#[rustc_const_stable(feature = "const_bitreverse", since = "1.40.0")]
17791779
pub fn bitreverse<T: Copy>(x: T) -> T;
17801780

17811781
/// Performs checked integer addition.
17821782
///
17831783
/// The stabilized versions of this intrinsic are available on the integer
17841784
/// 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)
17861786
#[rustc_const_stable(feature = "const_int_overflow", since = "1.40.0")]
17871787
pub fn add_with_overflow<T: Copy>(x: T, y: T) -> (T, bool);
17881788

17891789
/// Performs checked integer subtraction
17901790
///
17911791
/// The stabilized versions of this intrinsic are available on the integer
17921792
/// 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)
17941794
#[rustc_const_stable(feature = "const_int_overflow", since = "1.40.0")]
17951795
pub fn sub_with_overflow<T: Copy>(x: T, y: T) -> (T, bool);
17961796

17971797
/// Performs checked integer multiplication
17981798
///
17991799
/// The stabilized versions of this intrinsic are available on the integer
18001800
/// 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)
18021802
#[rustc_const_stable(feature = "const_int_overflow", since = "1.40.0")]
18031803
pub fn mul_with_overflow<T: Copy>(x: T, y: T) -> (T, bool);
18041804

@@ -1813,15 +1813,15 @@ extern "rust-intrinsic" {
18131813
///
18141814
/// Safe wrappers for this intrinsic are available on the integer
18151815
/// 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)
18171817
#[rustc_const_unstable(feature = "const_int_unchecked_arith", issue = "none")]
18181818
pub fn unchecked_div<T: Copy>(x: T, y: T) -> T;
18191819
/// Returns the remainder of an unchecked division, resulting in
18201820
/// undefined behavior where y = 0 or x = `T::MIN` and y = -1
18211821
///
18221822
/// Safe wrappers for this intrinsic are available on the integer
18231823
/// 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)
18251825
#[rustc_const_unstable(feature = "const_int_unchecked_arith", issue = "none")]
18261826
pub fn unchecked_rem<T: Copy>(x: T, y: T) -> T;
18271827

@@ -1830,15 +1830,15 @@ extern "rust-intrinsic" {
18301830
///
18311831
/// Safe wrappers for this intrinsic are available on the integer
18321832
/// 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)
18341834
#[rustc_const_stable(feature = "const_int_unchecked", since = "1.40.0")]
18351835
pub fn unchecked_shl<T: Copy>(x: T, y: T) -> T;
18361836
/// Performs an unchecked right shift, resulting in undefined behavior when
18371837
/// y < 0 or y >= N, where N is the width of T in bits.
18381838
///
18391839
/// Safe wrappers for this intrinsic are available on the integer
18401840
/// 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)
18421842
#[rustc_const_stable(feature = "const_int_unchecked", since = "1.40.0")]
18431843
pub fn unchecked_shr<T: Copy>(x: T, y: T) -> T;
18441844

@@ -1867,52 +1867,52 @@ extern "rust-intrinsic" {
18671867
///
18681868
/// The stabilized versions of this intrinsic are available on the integer
18691869
/// 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)
18711871
#[rustc_const_stable(feature = "const_int_rotate", since = "1.40.0")]
18721872
pub fn rotate_left<T: Copy>(x: T, y: T) -> T;
18731873

18741874
/// Performs rotate right.
18751875
///
18761876
/// The stabilized versions of this intrinsic are available on the integer
18771877
/// 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)
18791879
#[rustc_const_stable(feature = "const_int_rotate", since = "1.40.0")]
18801880
pub fn rotate_right<T: Copy>(x: T, y: T) -> T;
18811881

18821882
/// Returns (a + b) mod 2<sup>N</sup>, where N is the width of T in bits.
18831883
///
18841884
/// The stabilized versions of this intrinsic are available on the integer
18851885
/// 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)
18871887
#[rustc_const_stable(feature = "const_int_wrapping", since = "1.40.0")]
18881888
pub fn wrapping_add<T: Copy>(a: T, b: T) -> T;
18891889
/// Returns (a - b) mod 2<sup>N</sup>, where N is the width of T in bits.
18901890
///
18911891
/// The stabilized versions of this intrinsic are available on the integer
18921892
/// 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)
18941894
#[rustc_const_stable(feature = "const_int_wrapping", since = "1.40.0")]
18951895
pub fn wrapping_sub<T: Copy>(a: T, b: T) -> T;
18961896
/// Returns (a * b) mod 2<sup>N</sup>, where N is the width of T in bits.
18971897
///
18981898
/// The stabilized versions of this intrinsic are available on the integer
18991899
/// 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)
19011901
#[rustc_const_stable(feature = "const_int_wrapping", since = "1.40.0")]
19021902
pub fn wrapping_mul<T: Copy>(a: T, b: T) -> T;
19031903

19041904
/// Computes `a + b`, while saturating at numeric bounds.
19051905
///
19061906
/// The stabilized versions of this intrinsic are available on the integer
19071907
/// 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)
19091909
#[rustc_const_stable(feature = "const_int_saturating", since = "1.40.0")]
19101910
pub fn saturating_add<T: Copy>(a: T, b: T) -> T;
19111911
/// Computes `a - b`, while saturating at numeric bounds.
19121912
///
19131913
/// The stabilized versions of this intrinsic are available on the integer
19141914
/// 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)
19161916
#[rustc_const_stable(feature = "const_int_saturating", since = "1.40.0")]
19171917
pub fn saturating_sub<T: Copy>(a: T, b: T) -> T;
19181918

0 commit comments

Comments
 (0)