@@ -723,7 +723,7 @@ extern "rust-intrinsic" {
723
723
/// macro, which panics when it is executed, it is *undefined behavior* to
724
724
/// reach code marked with this function.
725
725
///
726
- /// The stabilized version of this intrinsic is [`core::hint::unreachable_unchecked`](crate::hint::unreachable_unchecked) .
726
+ /// The stabilized version of this intrinsic is [`core::hint::unreachable_unchecked`].
727
727
#[ rustc_const_unstable( feature = "const_unreachable_unchecked" , issue = "53188" ) ]
728
728
pub fn unreachable ( ) -> !;
729
729
@@ -768,13 +768,13 @@ extern "rust-intrinsic" {
768
768
/// More specifically, this is the offset in bytes between successive
769
769
/// items of the same type, including alignment padding.
770
770
///
771
- /// The stabilized version of this intrinsic is [`core::mem::size_of`](crate::mem::size_of) .
771
+ /// The stabilized version of this intrinsic is [`core::mem::size_of`].
772
772
#[ rustc_const_stable( feature = "const_size_of" , since = "1.40.0" ) ]
773
773
pub fn size_of < T > ( ) -> usize ;
774
774
775
775
/// The minimum alignment of a type.
776
776
///
777
- /// The stabilized version of this intrinsic is [`core::mem::align_of`](crate::mem::align_of) .
777
+ /// The stabilized version of this intrinsic is [`core::mem::align_of`].
778
778
#[ rustc_const_stable( feature = "const_min_align_of" , since = "1.40.0" ) ]
779
779
pub fn min_align_of < T > ( ) -> usize ;
780
780
/// The preferred alignment of a type.
@@ -790,21 +790,21 @@ extern "rust-intrinsic" {
790
790
pub fn size_of_val < T : ?Sized > ( _: * const T ) -> usize ;
791
791
/// The required alignment of the referenced value.
792
792
///
793
- /// The stabilized version of this intrinsic is [`core::mem::align_of_val`](crate::mem::align_of_val) .
793
+ /// The stabilized version of this intrinsic is [`core::mem::align_of_val`].
794
794
#[ rustc_const_unstable( feature = "const_align_of_val" , issue = "46571" ) ]
795
795
pub fn min_align_of_val < T : ?Sized > ( _: * const T ) -> usize ;
796
796
797
797
/// Gets a static string slice containing the name of a type.
798
798
///
799
- /// The stabilized version of this intrinsic is [`core::any::type_name`](crate::any::type_name) .
799
+ /// The stabilized version of this intrinsic is [`core::any::type_name`].
800
800
#[ rustc_const_unstable( feature = "const_type_name" , issue = "63084" ) ]
801
801
pub fn type_name < T : ?Sized > ( ) -> & ' static str ;
802
802
803
803
/// Gets an identifier which is globally unique to the specified type. This
804
804
/// function will return the same value for a type regardless of whichever
805
805
/// crate it is invoked in.
806
806
///
807
- /// The stabilized version of this intrinsic is [`core::any::TypeId::of`](crate::any::TypeId::of) .
807
+ /// The stabilized version of this intrinsic is [`core::any::TypeId::of`].
808
808
#[ rustc_const_unstable( feature = "const_type_id" , issue = "77125" ) ]
809
809
pub fn type_id < T : ?Sized + ' static > ( ) -> u64 ;
810
810
@@ -829,7 +829,7 @@ extern "rust-intrinsic" {
829
829
830
830
/// Gets a reference to a static `Location` indicating where it was called.
831
831
///
832
- /// Consider using [`core::panic::Location::caller`](crate::panic::Location::caller) instead.
832
+ /// Consider using [`core::panic::Location::caller`] instead.
833
833
#[ rustc_const_unstable( feature = "const_caller_location" , issue = "76156" ) ]
834
834
pub fn caller_location ( ) -> & ' static crate :: panic:: Location < ' static > ;
835
835
@@ -1158,11 +1158,11 @@ extern "rust-intrinsic" {
1158
1158
1159
1159
/// Performs a volatile load from the `src` pointer.
1160
1160
///
1161
- /// The stabilized version of this intrinsic is [`core::ptr::read_volatile`](crate::ptr::read_volatile) .
1161
+ /// The stabilized version of this intrinsic is [`core::ptr::read_volatile`].
1162
1162
pub fn volatile_load < T > ( src : * const T ) -> T ;
1163
1163
/// Performs a volatile store to the `dst` pointer.
1164
1164
///
1165
- /// The stabilized version of this intrinsic is [`core::ptr::write_volatile`](crate::ptr::write_volatile) .
1165
+ /// The stabilized version of this intrinsic is [`core::ptr::write_volatile`].
1166
1166
pub fn volatile_store < T > ( dst : * mut T , val : T ) ;
1167
1167
1168
1168
/// Performs a volatile load from the `src` pointer
@@ -1703,7 +1703,7 @@ extern "rust-intrinsic" {
1703
1703
/// Returns the value of the discriminant for the variant in 'v';
1704
1704
/// if `T` has no discriminant, returns `0`.
1705
1705
///
1706
- /// The stabilized version of this intrinsic is [`core::mem::discriminant`](crate::mem::discriminant) .
1706
+ /// The stabilized version of this intrinsic is [`core::mem::discriminant`].
1707
1707
#[ rustc_const_unstable( feature = "const_discriminant" , issue = "69821" ) ]
1708
1708
pub fn discriminant_value < T > ( v : & T ) -> <T as DiscriminantKind >:: Discriminant ;
1709
1709
0 commit comments