We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 91a90d3 + 4e202ad commit 38c2ba2Copy full SHA for 38c2ba2
alloc/src/boxed.rs
@@ -954,7 +954,7 @@ impl<T: ?Sized> Box<T> {
954
/// [`Layout`]: crate::Layout
955
#[stable(feature = "box_raw", since = "1.4.0")]
956
#[inline]
957
- #[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`"]
958
pub unsafe fn from_raw(raw: *mut T) -> Self {
959
unsafe { Self::from_raw_in(raw, Global) }
960
}
0 commit comments