Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval committed Oct 2, 2024
1 parent 142f8d8 commit ffa99a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library/kani/src/invariant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
/// # fn days_in_month(_: i64, _: u8) -> u8 { todo!() }
/// # fn increase_date(_: &mut MyDate, _: u8) { todo!() }
/// #
/// # impl kani::Invariant for MyDate {
/// # impl Invariant for MyDate {
/// # fn is_safe(&self) -> bool {
/// # self.month > 0
/// # && self.month <= 12
Expand Down
5 changes: 3 additions & 2 deletions library/kani_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ macro_rules! kani_lib {
kani_core::generate_arbitrary!(std);

kani_core::check_intrinsic! {
msg="This API was accidently added as a public function and it will be made private in future releases.",
vis=pub
msg="This API will be made private in future releases.", vis=pub
}

pub mod mem {
Expand Down Expand Up @@ -478,6 +477,8 @@ macro_rules! check_intrinsic {
/// by mistake. Thus, it will be made private in future releases.
/// Instead, we recommend users to either use `assert` or `cover` to create properties they
/// would like to verify.
///
/// See <https://github.com/model-checking/kani/issues/3561> for more details.
#[cfg(not(feature = "concrete_playback"))]
#[inline(never)]
#[rustc_diagnostic_item = "KaniCheck"]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/check_deprecated/deprecated_warning.expected
Original file line number Diff line number Diff line change
@@ -1 +1 @@
warning: use of deprecated function `kani::check`: This API was accidently added as a public function and it will be made private in future releases.
warning: use of deprecated function `kani::check`: This API will be made private in future releases.

0 comments on commit ffa99a5

Please sign in to comment.