]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/intrinsics.rs
Auto merge of #105550 - gimbles:master, r=Nilstrieb
[rust.git] / library / core / src / intrinsics.rs
index 7ed7d767f2fb5b42955ac6c80cccaba8e9003885..a521905a9e735b37296ef50bd906a30fe5eb7779 100644 (file)
@@ -959,13 +959,13 @@ pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
     #[rustc_safe_intrinsic]
     pub fn assert_zero_valid<T>();
 
-    /// A guard for unsafe functions that cannot ever be executed if `T` has invalid
-    /// bit patterns: This will statically either panic, or do nothing.
+    /// A guard for `std::mem::uninitialized`. This will statically either panic, or do nothing.
     ///
     /// This intrinsic does not have a stable counterpart.
     #[rustc_const_unstable(feature = "const_assert_type2", issue = "none")]
     #[rustc_safe_intrinsic]
-    pub fn assert_uninit_valid<T>();
+    #[cfg(not(bootstrap))]
+    pub fn assert_mem_uninitialized_valid<T>();
 
     /// Gets a reference to a static `Location` indicating where it was called.
     ///