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 @@ -954,7 +954,7 @@ impl<T: ?Sized> Box<T> {
954
954
/// [`Layout`]: crate::Layout
955
955
#[ stable( feature = "box_raw" , since = "1.4.0" ) ]
956
956
#[ inline]
957
- #[ must_use = "call `drop(from_raw(ptr))` if you intend to drop the `Box`" ]
957
+ #[ must_use = "call `drop(Box:: from_raw(ptr))` if you intend to drop the `Box`" ]
958
958
pub unsafe fn from_raw ( raw : * mut T ) -> Self {
959
959
unsafe { Self :: from_raw_in ( raw, Global ) }
960
960
}
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