We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f94999d commit 60ceb62Copy full SHA for 60ceb62
library/alloc/src/slice.rs
@@ -529,7 +529,7 @@ impl<T> [T] {
529
#[cfg(kani)]
530
let buf_ptr = ptr::slice_from_raw_parts(buf.as_ptr(), capacity);
531
532
- let len_ptr = unsafe { (&buf as *const Vec<T> as *const usize).add(2) };
+ let len_ptr = unsafe { (&buf as *const Vec<T> as *const usize).add(2) };
533
#[kani::loop_invariant(
534
kani::mem::same_allocation(buf.as_ptr(), buf.as_ptr().wrapping_add(capacity)) &&
535
unsafe {*len_ptr <= T::MAX_SLICE_LEN} &&
0 commit comments