@@ -855,8 +855,15 @@ extern "rust-intrinsic" {
855
855
/// Moves a value to an uninitialized memory location.
856
856
///
857
857
/// Drop glue is not run on the destination.
858
+ ///
859
+ /// The stabilized version of this intrinsic is
860
+ /// [`std::ptr::write`](../../std/ptr/fn.write.html).
858
861
pub fn move_val_init < T > ( dst : * mut T , src : T ) ;
859
862
863
+ /// The minimum alignment of a type.
864
+ ///
865
+ /// The stabilized version of this intrinsic is
866
+ /// [`std::mem::align_of`](../../std/mem/fn.align_of.html).
860
867
#[ rustc_const_stable( feature = "const_min_align_of" , since = "1.40.0" ) ]
861
868
pub fn min_align_of < T > ( ) -> usize ;
862
869
#[ rustc_const_unstable( feature = "const_pref_align_of" , issue = "none" ) ]
@@ -867,6 +874,10 @@ extern "rust-intrinsic" {
867
874
/// The stabilized version of this intrinsic is
868
875
/// [`std::mem::size_of_val`](../../std/mem/fn.size_of_val.html).
869
876
pub fn size_of_val < T : ?Sized > ( _: & T ) -> usize ;
877
+ /// The minimum alignment of the type of the value that `val` points to.
878
+ ///
879
+ /// The stabilized version of this intrinsic is
880
+ /// [`std::mem::min_align_of_val`](../../std/mem/fn.min_align_of_val.html).
870
881
pub fn min_align_of_val < T : ?Sized > ( _: & T ) -> usize ;
871
882
872
883
/// Gets a static string slice containing the name of a type.
@@ -897,6 +908,9 @@ extern "rust-intrinsic" {
897
908
/// which is unsafe unless `T` is `Copy`. Also, even if T is
898
909
/// `Copy`, an all-zero value may not correspond to any legitimate
899
910
/// state for the type in question.
911
+ ///
912
+ /// The stabilized version of this intrinsic is
913
+ /// [`std::mem::zeroed`](../../std/mem/fn.zeroed.html).
900
914
#[ unstable(
901
915
feature = "core_intrinsics" ,
902
916
reason = "intrinsics are unlikely to ever be stabilized, instead \
@@ -914,6 +928,9 @@ extern "rust-intrinsic" {
914
928
/// state, which means it may claim either dropped or
915
929
/// undropped. In the general case one must use `ptr::write` to
916
930
/// initialize memory previous set to the result of `uninit`.
931
+ ///
932
+ /// The stabilized version of this intrinsic is
933
+ /// [`std::mem::MaybeUninit`](../../std/mem/union.MaybeUninit.html).
917
934
#[ unstable(
918
935
feature = "core_intrinsics" ,
919
936
reason = "intrinsics are unlikely to ever be stabilized, instead \
@@ -1159,6 +1176,9 @@ extern "rust-intrinsic" {
1159
1176
/// byte past the end of an allocated object. If either pointer is out of
1160
1177
/// bounds or arithmetic overflow occurs then any further use of the
1161
1178
/// returned value will result in undefined behavior.
1179
+ ///
1180
+ /// The stabilized version of this intrinsic is
1181
+ /// [`std::pointer::offset`](../../std/primitive.pointer.html#method.offset).
1162
1182
pub fn offset < T > ( dst : * const T , offset : isize ) -> * const T ;
1163
1183
1164
1184
/// Calculates the offset from a pointer, potentially wrapping.
@@ -1172,6 +1192,9 @@ extern "rust-intrinsic" {
1172
1192
/// resulting pointer to point into or one byte past the end of an allocated
1173
1193
/// object, and it wraps with two's complement arithmetic. The resulting
1174
1194
/// value is not necessarily valid to be used to actually access memory.
1195
+ ///
1196
+ /// The stabilized version of this intrinsic is
1197
+ /// [`std::pointer::wrapping_offset`](../../std/primitive.pointer.html#method.wrapping_offset).
1175
1198
pub fn arith_offset < T > ( dst : * const T , offset : isize ) -> * const T ;
1176
1199
1177
1200
/// Equivalent to the appropriate `llvm.memcpy.p0i8.0i8.*` intrinsic, with
@@ -1626,6 +1649,8 @@ extern "rust-intrinsic" {
1626
1649
1627
1650
/// Returns the value of the discriminant for the variant in 'v',
1628
1651
/// cast to a `u64`; if `T` has no discriminant, returns 0.
1652
+ /// The stabilized version of this intrinsic is
1653
+ /// [`std::mem::discriminant`](../../std/mem/fn.discriminant.html)
1629
1654
pub fn discriminant_value < T > ( v : & T ) -> u64 ;
1630
1655
1631
1656
/// Rust's "try catch" construct which invokes the function pointer `f` with
0 commit comments