File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -952,7 +952,7 @@ impl<T: ?Sized> Box<T> {
952
952
/// [`Layout`]: crate::Layout
953
953
#[ stable( feature = "box_raw" , since = "1.4.0" ) ]
954
954
#[ inline]
955
- #[ must_use = "call `drop(from_raw(ptr))` if you intend to drop the `Box`" ]
955
+ #[ must_use = "call `drop(Box:: from_raw(ptr))` if you intend to drop the `Box`" ]
956
956
pub unsafe fn from_raw ( raw : * mut T ) -> Self {
957
957
unsafe { Self :: from_raw_in ( raw, Global ) }
958
958
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ warning: unused return value of `Box::<T>::from_raw` that must be used
4
4
LL | Box::from_raw(ptr);
5
5
| ^^^^^^^^^^^^^^^^^^^
6
6
|
7
- = note: call `drop(from_raw(ptr))` if you intend to drop the `Box`
7
+ = note: call `drop(Box:: from_raw(ptr))` if you intend to drop the `Box`
8
8
note: the lint level is defined here
9
9
--> $DIR/must-use-box-from-raw.rs:5:9
10
10
|
You can’t perform that action at this time.
0 commit comments