Skip to content

Add contracts for NonZero::from_mut_unchecked #345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tautschnig
Copy link
Member

@tautschnig tautschnig commented Apr 29, 2025

Contract can now be expressed as model-checking/kani#4151 has been merged.

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

This PR should serve as a basis for discussion: I'm not sure how to
refer to a parameter that is a mutable reference, and I don't know
whether that is just a lack of Rust skills on my part or a fundamental
Kani limitation.
@tautschnig tautschnig self-assigned this Apr 30, 2025
@tautschnig
Copy link
Member Author

Noting that model-checking/kani#4151 is expected to fix this.

@tautschnig tautschnig marked this pull request as ready for review July 10, 2025 17:23
@tautschnig tautschnig requested a review from a team as a code owner July 10, 2025 17:23
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.

3 participants