Skip to content

Commit 9ec07c8

Browse files
committed
add cfg(kani)
1 parent 88e434d commit 9ec07c8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

library/core/src/num/saturating.rs

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ use crate::ops::{
66
Mul, MulAssign, Neg, Not, Rem, RemAssign, Sub, SubAssign,
77
};
88

9+
#[cfg(kani)]
10+
use crate::kani;
11+
912
/// Provides intentionally-saturating arithmetic on `T`.
1013
///
1114
/// Operations like `+` on `u32` values are intended to never overflow,

library/core/src/num/wrapping.rs

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ use crate::ops::{
66
Mul, MulAssign, Neg, Not, Rem, RemAssign, Shl, ShlAssign, Shr, ShrAssign, Sub, SubAssign,
77
};
88

9+
#[cfg(kani)]
10+
use crate::kani;
11+
912
/// Provides intentionally-wrapped arithmetic on `T`.
1013
///
1114
/// Operations like `+` on `u32` values are intended to never overflow,

0 commit comments

Comments
 (0)