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.
1 parent 0f403da commit 2119a21Copy full SHA for 2119a21
alloc/src/boxed.rs
@@ -952,7 +952,7 @@ impl<T: ?Sized> Box<T> {
952
/// [`Layout`]: crate::Layout
953
#[stable(feature = "box_raw", since = "1.4.0")]
954
#[inline]
955
- #[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`"]
956
pub unsafe fn from_raw(raw: *mut T) -> Self {
957
unsafe { Self::from_raw_in(raw, Global) }
958
}
0 commit comments