]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/ptr/mut_ptr.rs
Revert effects of PRs 81167 and 83091.
[rust.git] / library / core / src / ptr / mut_ptr.rs
index 750279ac0dbdc8e0d493122446e5725eab3098c5..a6424041542d9054c79e060f23772de186088cc3 100644 (file)
@@ -1002,9 +1002,8 @@ pub unsafe fn drop_in_place(self) {
     ///
     /// [`ptr::write`]: crate::ptr::write()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
-    #[rustc_const_unstable(feature = "const_ptr_write", issue = "none")]
     #[inline(always)]
-    pub const unsafe fn write(self, val: T)
+    pub unsafe fn write(self, val: T)
     where
         T: Sized,
     {