Skip to content

Remove deprecated function and adapt tests - #1534

Merged
celinval merged 3 commits into
model-checking:mainfrom
celinval:issue-599-remove
Aug 17, 2022
Merged

celinval merged 3 commits into
model-checking:mainfrom
celinval:issue-599-remove

Conversation

@celinval

Copy link
Copy Markdown
Contributor

Description of changes:

  • Removed kani::any_raw() and Invariants.
  • Removed handling of old _VERIFIER* functions.
  • Adapted tests that were using old functions. Note that I moved most tests from tests/kani/Invariants to be under tests/kani/Arbitrary

Resolved issues:

Resolves #599
Is related to #1394

Call-outs:

I found an issue while updating the tests that is orthogonal to this change. I created #1533 and moved the nonzero.rs test to be a fix-me test.

Testing:

  • How is this change tested?

  • Is this a refactor change?

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

 - Removed kani::any_raw() and Invariants.
 - Removed handling of old __VERIFIER_* functions.
@celinval
celinval requested a review from a team as a code owner August 17, 2022 03:17

@tedinski tedinski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do wonder if we should be "nicer" and leave things in place with the deprecations, but I suspect there are not a lot of users of this, so we can get away with it this time.

@celinval

Copy link
Copy Markdown
Contributor Author

I do wonder if we should be "nicer" and leave things in place with the deprecations, but I suspect there are not a lot of users of this, so we can get away with it this time.

I think we should at least create a proper deprecation plan. For example, we can say that we remove deprecated APIs only after at least 3 releases after the deprecation or something like that. Thoughts?

@celinval
celinval merged commit 7e84b00 into model-checking:main Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove deprecated proof harness utility functions

2 participants