cannot be relied on for safety.unsafe precondition(s) violated: Layout::from_size_align_unchecked requires that align is a power of 2 and the rounded-up allocation size does not exceed isize::MAX This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.unsafe precondition(s) violated: Vec::set_len requires that new_len <= capacity() This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.unsafe precondition(s) violated: ptr::offset_from_unsigned requires `self >= origin` This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.mid > lenunsafe precondition(s) violated: slice::split_at_unchecked requires the index to be within the slice This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.`new_layout.size()` must be smaller than or equal to `old_layout.size()`