Skip to content

Conversation

@zhassan-aws
Copy link
Contributor

Description of changes:

Implement Arbitrary for std::marker::PhantomData and std::marker::PhantomPinned to facilitate using #[derive(Arbitrary)] for structs containing either of them.

Resolved issues:

Resolves #2224

Related RFC:

Optional #ISSUE-NUMBER.

Call-outs:

Testing:

  • How is this change tested? Two new tests

  • Is this a refactor change? No

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.

@zhassan-aws zhassan-aws requested a review from a team as a code owner February 22, 2023 17:40
@zhassan-aws zhassan-aws merged commit 35b3653 into model-checking:main Feb 23, 2023
@zhassan-aws zhassan-aws deleted the arbitrary-phantom branch February 23, 2023 00:27
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.

Make PhantomData and PhantomPinned impl kani::Arbitrary

2 participants