Skip to content

Commit

Permalink
Update library/core/src/intrinsics.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval authored Nov 7, 2024
1 parent 5e24d04 commit 4c07dcd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3609,12 +3609,7 @@ mod verify {
let base = buf.as_mut_ptr() as *mut u8;
base.wrapping_add(kani::any_where(|offset: &usize| *offset < 400)) as *mut char
};
let mut buffer1 = [MaybeUninit::<char>::uninit(); 100];
for i in 0..100 {
if kani::any() {
buffer1[i] = MaybeUninit::new(kani::any());
}
}
let mut buffer1: [MaybeUninit::<char>; 100] = kani::any();
let mut buffer2 = [MaybeUninit::<char>::uninit(); 100];
let src = gen_any_ptr(&mut buffer1);
let dst = if kani::any() { gen_any_ptr(&mut buffer2) } else { gen_any_ptr(&mut buffer1) };
Expand Down

0 comments on commit 4c07dcd

Please sign in to comment.