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 b59f6569a5
commit 5ebd482c25
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) };
// verify size
assert!(unsafe { slice.get_unchecked(len) } as *const _ as usize <= start + size);
// initialize
for e in slice.iter_mut() {
*e = default();