Lines Matching full:safety
14 /// # Safety
34 // SAFETY: in krealloc_aligned()
36 // function safety requirement. in krealloc_aligned()
38 // according to the function safety requirement) or a result from `next_power_of_two()`. in krealloc_aligned()
44 // SAFETY: `ptr::null_mut()` is null and `layout` has a non-zero size by the function safety in alloc()
56 // SAFETY: in realloc()
58 // overflow `isize` by the function safety requirement. in realloc()
62 // SAFETY: in realloc()
63 // - `ptr` is either null or a pointer allocated by this allocator by the function safety in realloc()
65 // - the size of `layout` is not zero because `new_size` is not zero by the function safety in realloc()
71 // SAFETY: `ptr::null_mut()` is null and `layout` has a non-zero size by the function safety in alloc_zeroed()