Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ShoyuVanilla committed Jan 4, 2025
1 parent c3ac4fb commit 4115ba2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions library/core/src/convert/num.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use crate::num::TryFromIntError;
use safety::requires;

#[cfg(kani)]
use crate::kani;

use crate::num::TryFromIntError;
#[allow(unused_imports)]
use crate::ub_checks::float_to_int_in_range;

Expand Down Expand Up @@ -966,9 +965,9 @@ mod verify {
check_nonzero_i32_try_from_nonzero_u64_should_panic,
);
generate_nonzero_int_try_from_nonzero_int_harness!(
u64 => u64,
check_nonzero_u64_try_from_nonzero_u64,
check_nonzero_u64_try_from_nonzero_u64_should_panic,
u64 => i64,
check_nonzero_i64_try_from_nonzero_u64,
check_nonzero_i64_try_from_nonzero_u64_should_panic,
);
generate_nonzero_int_try_from_nonzero_int_harness!(
u64 => isize,
Expand Down

0 comments on commit 4115ba2

Please sign in to comment.