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.
cast_slice_from_raw_parts
1 parent 7c56e84 commit dc331a7Copy full SHA for dc331a7
src/partial.rs
@@ -93,7 +93,7 @@ impl<T> Drop for Partial<T>
93
{
94
if !self.ptr.is_null() {
95
unsafe {
96
- ptr::drop_in_place(alloc::slice::from_raw_parts_mut(self.ptr, self.len));
+ ptr::drop_in_place(core::ptr::slice_from_raw_parts_mut(self.ptr, self.len));
97
}
98
99
0 commit comments