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

Partial support for Generator type #486

Merged
merged 4 commits into from
Sep 17, 2021
Merged

Conversation

avanhatt
Copy link
Contributor

@avanhatt avanhatt commented Sep 14, 2021

Description of changes:

Rust added a new Generator type to support coroutines. This patch lets us codegen code that has the Generator type somewhere, but does not use it in paths that are being verified. This helps unblock crates that depend on the popular Tokio crate. Full support for Generator tracked in #416.

Resolved issues:

Resolves #459.

Call-outs:

  • The Generator type is a global codegen item, but it does not have a function signature, so we need to make the function signature on our context object optional.
  • This patch includes more helpful debugging assertions in places.

Testing:

  • How is this change tested?

New unit test.

  • Is this a refactor change?

Not really.

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.

Copy link
Contributor

@tedinski tedinski left a comment

Choose a reason for hiding this comment

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

Like the error message improvements.

@avanhatt avanhatt merged commit d54df6d into model-checking:main Sep 17, 2021
@avanhatt avanhatt deleted the generators branch September 17, 2021 15:10
tedinski pushed a commit to tedinski/rmc that referenced this pull request Apr 22, 2022
tedinski pushed a commit to tedinski/rmc that referenced this pull request Apr 25, 2022
tedinski pushed a commit to tedinski/rmc that referenced this pull request Apr 26, 2022
tedinski pushed a commit that referenced this pull request Apr 27, 2022
Partial support for Generator type
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.

Partial support for Generator
2 participants