Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
qinheping committed Nov 8, 2024
1 parent 4d1a924 commit aa177cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions library/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
#![feature(unboxed_closures)]
#![feature(unsized_fn_params)]
#![feature(with_negative_coherence)]
// Required for Kani loop contracts, which are annotated as custom stmt attributes.
#![feature(proc_macro_hygiene)]
// tidy-alphabetical-end
//
Expand Down
3 changes: 1 addition & 2 deletions library/core/src/str/validations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,9 @@ pub mod verify {
use super::*;

#[kani::proof]
#[kani::unwind(8)]
pub fn check_run_utf8_validation() {
if kani::any() {
// TODO: ARR_SIZE can be `std::usize::MAX` with cbmc argument
// TODO: ARR_SIZE can be much larger with cbmc argument
// `--arrays-uf-always`
const ARR_SIZE: usize = 1000;
let mut x: [u8; ARR_SIZE] = kani::any();
Expand Down

0 comments on commit aa177cc

Please sign in to comment.