File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 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> {
954954 /// [`Layout`]: crate::Layout
955955 #[ stable( feature = "box_raw" , since = "1.4.0" ) ]
956956 #[ 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`" ]
958958 pub unsafe fn from_raw ( raw : * mut T ) -> Self {
959959 unsafe { Self :: from_raw_in ( raw, Global ) }
960960 }
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
44LL | Box::from_raw(ptr);
55 | ^^^^^^^^^^^^^^^^^^
66 |
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`
88note: the lint level is defined here
99 --> $DIR/must-use-box-from-raw.rs:5:9
1010 |
You can’t perform that action at this time.
0 commit comments