1
0
Fork 0

remove UB assert in uncached

This commit is contained in:
Simon Renblad 2024-10-22 11:27:20 +08:00
parent 4138a65270
commit 3e59dcbc94
1 changed files with 0 additions and 2 deletions

View File

@ -33,8 +33,6 @@ impl<T> UncachedSlice<T> {
} }
let slice = unsafe { core::slice::from_raw_parts_mut(ptr, len) }; let slice = unsafe { core::slice::from_raw_parts_mut(ptr, len) };
// verify size
assert!(unsafe { slice.get_unchecked(len) } as *const _ as usize <= start + size);
// initialize // initialize
for e in slice.iter_mut() { for e in slice.iter_mut() {
*e = default(); *e = default();