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 64c229c + 2119a21 commit d098f90Copy full SHA for d098f90
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