Skip to content

Commit

Permalink
[ci] Roll Kani version to 0.47.0
Browse files Browse the repository at this point in the history
Closes #929
  • Loading branch information
joshlf committed Feb 23, 2024
1 parent f4f80ce commit 29b7cf9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ jobs:
args: "--package zerocopy --features __internal_use_only_features_that_work_on_stable --output-format=terse --randomize-layout --memory-safety-checks --overflow-checks --undefined-function-checks --unwinding-checks"
# This version is automatically rolled by
# `roll-pinned-toolchain-versions.yml`.
kani-version: 0.46.0
kani-version: 0.47.0

check_fmt:
runs-on: ubuntu-latest
Expand Down
18 changes: 13 additions & 5 deletions src/byteorder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -889,17 +889,25 @@ mod tests {
rng.sample(Self::DIST)
}

#[cfg(kani)]
fn any() -> Self {
kani::any()
}

#[cfg_attr(kani, allow(unused))]
fn checked_add(self, rhs: Self) -> Option<Self>;

#[cfg_attr(kani, allow(unused))]
fn checked_div(self, rhs: Self) -> Option<Self>;

#[cfg_attr(kani, allow(unused))]
fn checked_mul(self, rhs: Self) -> Option<Self>;

#[cfg_attr(kani, allow(unused))]
fn checked_rem(self, rhs: Self) -> Option<Self>;

#[cfg_attr(kani, allow(unused))]
fn checked_sub(self, rhs: Self) -> Option<Self>;

#[cfg_attr(kani, allow(unused))]
fn checked_shl(self, rhs: Self) -> Option<Self>;

#[cfg_attr(kani, allow(unused))]
fn checked_shr(self, rhs: Self) -> Option<Self>;

fn is_nan(self) -> bool;
Expand Down

0 comments on commit 29b7cf9

Please sign in to comment.