]> 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 b154688fb087b94626f87e0a1f7af57d3f507ebb..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) }
     }