]> git.lizzy.rs Git - rust.git/blobdiff - library/alloc/src/boxed.rs
Rollup merge of #104402 - joboet:sync_remutex, r=m-ou-se
[rust.git] / library / alloc / src / boxed.rs
index e5f6b0c0c65d2b0700dac2b59b8a353698644f3c..b5fe8d72f7d2440be0fb824a4dc96d8c102e010d 100644 (file)
@@ -954,7 +954,7 @@ impl<T: ?Sized> Box<T> {
     /// [`Layout`]: crate::Layout
     #[stable(feature = "box_raw", since = "1.4.0")]
     #[inline]
-    #[must_use = "call `drop(from_raw(ptr))` if you intend to drop the `Box`"]
+    #[must_use = "call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`"]
     pub unsafe fn from_raw(raw: *mut T) -> Self {
         unsafe { Self::from_raw_in(raw, Global) }
     }
@@ -2033,7 +2033,7 @@ extern "rust-call" fn call(&self, args: Args) -> Self::Output {
     }
 }
 
-#[unstable(feature = "coerce_unsized", issue = "27732")]
+#[unstable(feature = "coerce_unsized", issue = "18598")]
 impl<T: ?Sized + Unsize<U>, U: ?Sized, A: Allocator> CoerceUnsized<Box<U, A>> for Box<T, A> {}
 
 #[unstable(feature = "dispatch_from_dyn", issue = "none")]