Lines Matching defs:dealloc
14071 /// use std::alloc::{alloc, dealloc, Layout};
14080 /// dealloc(ptr, layout);
14091 /// This function forwards calls to the [`GlobalAlloc::dealloc`] method
14095 /// This function is expected to be deprecated in favor of the `dealloc` method
14100 /// See [`GlobalAlloc::dealloc`].
14103 pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) {
14141 /// use std::alloc::{alloc_zeroed, dealloc, Layout};
14149 /// dealloc(ptr, layout);
14210 // for `dealloc` must be upheld by the caller.
14239 unsafe { dealloc(ptr.as_ptr(), layout) }
14298 // for `dealloc` must be upheld by the caller.
47264 /// needs to be equal to satisfy the [`dealloc`] requirement that memory must be
47284 /// [`dealloc`]: crate::alloc::GlobalAlloc::dealloc
47402 /// needs to be equal to satisfy the [`dealloc`] requirement that memory must be
47422 /// [`dealloc`]: crate::alloc::GlobalAlloc::dealloc
51011 /// use std::alloc::{dealloc, Layout};
51018 /// dealloc(p as *mut u8, Layout::new::<String>());