Lines Matching refs:dealloc
76 /// use std::alloc::{alloc, dealloc, handle_alloc_error, Layout};
88 /// dealloc(ptr, layout);
106 /// This function forwards calls to the [`GlobalAlloc::dealloc`] method
110 /// This function is expected to be deprecated in favor of the `dealloc` method
115 /// See [`GlobalAlloc::dealloc`].
118 pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) {
157 /// use std::alloc::{alloc_zeroed, dealloc, Layout};
165 /// dealloc(ptr, layout);
227 // for `dealloc` must be upheld by the caller.
256 unsafe { dealloc(ptr.as_ptr(), layout) }
315 // for `dealloc` must be upheld by the caller.