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

Contracts and Harnesses for <*const T>::byte_add, byte_sub and byte_offset #177

Closed
wants to merge 4 commits into from

Conversation

stogaru
Copy link

@stogaru stogaru commented Nov 22, 2024

Towards #76

Changes

  • Adds contracts for <*mut T>::byte_add, <*mut T>::byte_sub and <*mut T>::byte_offset.
  • Adds harnesses for the function verifying the following pointee types:
    • All integer types
    • Tuples (composite types)
    • Unit Type
    • Slices
  • Accomplishes this using a few macros.

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

@stogaru stogaru requested a review from a team as a code owner November 22, 2024 06:32
@stogaru
Copy link
Author

stogaru commented Nov 22, 2024

@feliperodri FYI

@carolynzech
Copy link

May I suggest you close this PR and incorporate these changes into #169? The contracts and harnesses are almost identical, so I think any comments you get on one PR will apply to the other. It's easier for us to review them all at once than have separate PRs with separate reviewers.

@stogaru
Copy link
Author

stogaru commented Nov 24, 2024

Sure @carolynzech! That makes sense.

@stogaru stogaru closed this Nov 24, 2024
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.

2 participants