We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34d7ec0 commit 7c1bb9dCopy full SHA for 7c1bb9d
tests/test_api.rs
@@ -9126,7 +9126,7 @@ fn run_with_rust_allocator() {
9126
unsafe extern "C" fn free(count: &AtomicUsize, data: *mut c_void, n: usize) {
9127
count.fetch_sub(n, Ordering::SeqCst);
9128
let _ = unsafe {
9129
- Box::from_raw(std::slice::from_raw_parts_mut(data as *mut u8, n))
+ Box::from_raw(std::ptr::slice_from_raw_parts_mut(data as *mut u8, n))
9130
};
9131
}
9132
unsafe extern "C" fn drop(count: *const AtomicUsize) {
0 commit comments