@@ -712,8 +712,8 @@ extern "rust-intrinsic" {
712
712
/// [`std::process::abort`](../../std/process/fn.abort.html).
713
713
pub fn abort ( ) -> !;
714
714
715
- /// Tells LLVM that this point in the code is not reachable, enabling
716
- /// further optimizations.
715
+ /// Informs the optimizer that this point in the code is not reachable,
716
+ /// enabling further optimizations.
717
717
///
718
718
/// N.B., this is very different from the `unreachable!()` macro: Unlike the
719
719
/// macro, which panics when it is executed, it is *undefined behavior* to
@@ -1133,7 +1133,7 @@ extern "rust-intrinsic" {
1133
1133
/// This intrinsic does not have a stable counterpart.
1134
1134
pub fn volatile_copy_nonoverlapping_memory < T > ( dst : * mut T , src : * const T , count : usize ) ;
1135
1135
/// Equivalent to the appropriate `llvm.memmove.p0i8.0i8.*` intrinsic, with
1136
- /// a size of `count` * ` size_of::<T>()` and an alignment of
1136
+ /// a size of `count * size_of::<T>()` and an alignment of
1137
1137
/// `min_align_of::<T>()`
1138
1138
///
1139
1139
/// The volatile parameter is set to `true`, so it will not be optimized out
@@ -1142,7 +1142,7 @@ extern "rust-intrinsic" {
1142
1142
/// This intrinsic does not have a stable counterpart.
1143
1143
pub fn volatile_copy_memory < T > ( dst : * mut T , src : * const T , count : usize ) ;
1144
1144
/// Equivalent to the appropriate `llvm.memset.p0i8.*` intrinsic, with a
1145
- /// size of `count` * ` size_of::<T>()` and an alignment of
1145
+ /// size of `count * size_of::<T>()` and an alignment of
1146
1146
/// `min_align_of::<T>()`.
1147
1147
///
1148
1148
/// The volatile parameter is set to `true`, so it will not be optimized out
@@ -1588,15 +1588,15 @@ extern "rust-intrinsic" {
1588
1588
pub fn exact_div < T : Copy > ( x : T , y : T ) -> T ;
1589
1589
1590
1590
/// Performs an unchecked division, resulting in undefined behavior
1591
- /// where y = 0 or x = ` T::MIN` and y = -1
1591
+ /// where ` y == 0` or ` x == T::MIN && y == -1`
1592
1592
///
1593
1593
/// Safe wrappers for this intrinsic are available on the integer
1594
1594
/// primitives via the `checked_div` method. For example,
1595
1595
/// [`u32::checked_div`]
1596
1596
#[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1597
1597
pub fn unchecked_div < T : Copy > ( x : T , y : T ) -> T ;
1598
1598
/// Returns the remainder of an unchecked division, resulting in
1599
- /// undefined behavior where y = 0 or x = ` T::MIN` and y = -1
1599
+ /// undefined behavior when ` y == 0` or ` x == T::MIN && y == -1`
1600
1600
///
1601
1601
/// Safe wrappers for this intrinsic are available on the integer
1602
1602
/// primitives via the `checked_rem` method. For example,
@@ -1605,15 +1605,15 @@ extern "rust-intrinsic" {
1605
1605
pub fn unchecked_rem < T : Copy > ( x : T , y : T ) -> T ;
1606
1606
1607
1607
/// Performs an unchecked left shift, resulting in undefined behavior when
1608
- /// y < 0 or y >= N, where N is the width of T in bits.
1608
+ /// ` y < 0` or ` y >= N` , where N is the width of T in bits.
1609
1609
///
1610
1610
/// Safe wrappers for this intrinsic are available on the integer
1611
1611
/// primitives via the `checked_shl` method. For example,
1612
1612
/// [`u32::checked_shl`]
1613
1613
#[ rustc_const_stable( feature = "const_int_unchecked" , since = "1.40.0" ) ]
1614
1614
pub fn unchecked_shl < T : Copy > ( x : T , y : T ) -> T ;
1615
1615
/// Performs an unchecked right shift, resulting in undefined behavior when
1616
- /// y < 0 or y >= N, where N is the width of T in bits.
1616
+ /// ` y < 0` or ` y >= N` , where N is the width of T in bits.
1617
1617
///
1618
1618
/// Safe wrappers for this intrinsic are available on the integer
1619
1619
/// primitives via the `checked_shr` method. For example,
@@ -1680,14 +1680,14 @@ extern "rust-intrinsic" {
1680
1680
#[ rustc_const_stable( feature = "const_int_wrapping" , since = "1.40.0" ) ]
1681
1681
pub fn wrapping_mul < T : Copy > ( a : T , b : T ) -> T ;
1682
1682
1683
- /// Computes `a + b`, while saturating at numeric bounds.
1683
+ /// Computes `a + b`, saturating at numeric bounds.
1684
1684
///
1685
1685
/// The stabilized versions of this intrinsic are available on the integer
1686
1686
/// primitives via the `saturating_add` method. For example,
1687
1687
/// [`u32::saturating_add`]
1688
1688
#[ rustc_const_stable( feature = "const_int_saturating" , since = "1.40.0" ) ]
1689
1689
pub fn saturating_add < T : Copy > ( a : T , b : T ) -> T ;
1690
- /// Computes `a - b`, while saturating at numeric bounds.
1690
+ /// Computes `a - b`, saturating at numeric bounds.
1691
1691
///
1692
1692
/// The stabilized versions of this intrinsic are available on the integer
1693
1693
/// primitives via the `saturating_sub` method. For example,
@@ -1696,14 +1696,14 @@ extern "rust-intrinsic" {
1696
1696
pub fn saturating_sub < T : Copy > ( a : T , b : T ) -> T ;
1697
1697
1698
1698
/// Returns the value of the discriminant for the variant in 'v',
1699
- /// cast to a `u64`; if `T` has no discriminant, returns 0 .
1699
+ /// cast to a `u64`; if `T` has no discriminant, returns `0` .
1700
1700
///
1701
1701
/// The stabilized version of this intrinsic is [`core::mem::discriminant`](crate::mem::discriminant).
1702
1702
#[ rustc_const_unstable( feature = "const_discriminant" , issue = "69821" ) ]
1703
1703
pub fn discriminant_value < T > ( v : & T ) -> <T as DiscriminantKind >:: Discriminant ;
1704
1704
1705
1705
/// Returns the number of variants of the type `T` cast to a `usize`;
1706
- /// if `T` has no variants, returns 0 . Uninhabited variants will be counted.
1706
+ /// if `T` has no variants, returns `0` . Uninhabited variants will be counted.
1707
1707
///
1708
1708
/// The to-be-stabilized version of this intrinsic is [`mem::variant_count`].
1709
1709
#[ rustc_const_unstable( feature = "variant_count" , issue = "73662" ) ]
0 commit comments