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

New Attribute-based loop specification #1455

Merged
merged 4 commits into from
Feb 27, 2025
Merged

Conversation

ziqiaozhou
Copy link
Collaborator

Support Loop specifications not covered in #1356

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@ziqiaozhou ziqiaozhou marked this pull request as ready for review February 19, 2025 02:10
fn parse(input: ParseStream) -> Result<Self> {
let invariants: Option<Invariant> = input.parse()?;
let invariant_except_breaks: Option<InvariantExceptBreak> = input.parse()?;
let invariant_ensures: Option<InvariantEnsures> = input.parse()?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

invariant_ensures is already deprecated in the macro syntax, so I don't think we need to support it in the attribute syntax.

Copy link
Collaborator

@Chris-Hawblitzel Chris-Hawblitzel left a comment

Choose a reason for hiding this comment

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

Thanks!

@ziqiaozhou ziqiaozhou merged commit 3ec86db into main Feb 27, 2025
11 checks passed
@ziqiaozhou ziqiaozhou deleted the attribute-macro-loop branch February 27, 2025 23:19
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