Skip to content
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

Macros: preconditions that generates an debug_assert! #1268

Open
W95Psp opened this issue Jan 23, 2025 · 0 comments
Open

Macros: preconditions that generates an debug_assert! #1268

W95Psp opened this issue Jan 23, 2025 · 0 comments

Comments

@W95Psp
Copy link
Collaborator

W95Psp commented Jan 23, 2025

We would like a specialized version of hax_lib::requires that also inserts at the top of the function a assert_debug.

Having this as a separate version let the users write non-Rust code in the hax_lib::requires clauses (e.g. something that would break borrow checking or something that uses fstar!). In the debug version, the user can write only valid Rust code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant