Skip to content

Commit 47f927d

Browse files
committed
Update kani version
1 parent 37e06ce commit 47f927d

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

library/alloc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@
193193
#![feature(unboxed_closures)]
194194
#![feature(unsized_fn_params)]
195195
#![feature(with_negative_coherence)]
196-
#![cfg_attr(kani, feature(proc_macro_hygiene))]
197196
#![rustc_preserve_ub_checks]
198197
// tidy-alphabetical-end
199198
//

library/core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@
246246
#![feature(unboxed_closures)]
247247
#![feature(unsized_fn_params)]
248248
#![feature(with_negative_coherence)]
249+
#![feature(proc_macro_hygiene)]
249250
// tidy-alphabetical-end
250251
//
251252
// Target features:

library/core/src/ptr/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,7 +2626,7 @@ mod verify {
26262626
}
26272627

26282628
#[kani::proof]
2629-
pub fn check_swap_nonoverlapping_simple_untyped() {
2629+
pub fn check_swap_nonoverlapping_simple_untyped_slice_ptr() {
26302630
const ARR_SIZE: usize = (2 << 32) -1;
26312631
let mut x: [u8; ARR_SIZE] = kani::any();
26322632
let mut xs = kani::slice::any_slice_of_array_mut(&mut x);
@@ -2636,6 +2636,5 @@ mod verify {
26362636
unsafe {
26372637
swap_nonoverlapping_simple_untyped(xs.as_mut_ptr(), ys.as_mut_ptr(), s);
26382638
}
2639-
}
2640-
2639+
}
26412640
}

scripts/run-kani.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ main() {
183183

184184
echo "Running Kani verify-std command..."
185185

186-
"$kani_path" verify-std -Z unstable-options ./library --target-dir "$temp_dir_target" -Z function-contracts -Z mem-predicates --output-format=terse $command_args
186+
"$kani_path" verify-std -Z unstable-options ./library --target-dir "$temp_dir_target" -Z function-contracts -Z mem-predicates -Z loop-contracts --output-format=terse $command_args --enable-unstable --cbmc-args --object-bits 12
187187
}
188188

189189
main

tool_config/kani-version.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# incompatible with the verify-std repo.
33

44
[kani]
5-
commit = "5f8f513d297827cfdce4c48065e51973ba563068"
5+
commit = "8400296f5280be4f99820129bc66447e8dff63f4"

0 commit comments

Comments
 (0)