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

verusfmt errors on opens_invariants #91

Closed
zeldovich opened this issue Sep 21, 2024 · 1 comment · Fixed by #93
Closed

verusfmt errors on opens_invariants #91

zeldovich opened this issue Sep 21, 2024 · 1 comment · Fixed by #93
Labels
bug Something isn't working

Comments

@zeldovich
Copy link

The following piece of Verus code:

vstd::prelude::verus! {
    proof fn f() opens_invariants [ 123u8 ] {}
}

compiles with the latest version of verus just fine, but the latest verusfmt reports:

Error:   × Failed to parse
   ╭─[parse2.rs:1:1]
 1 │ vstd::prelude::verus! {
 2 │     proof fn f() opens_invariants [ 123u8 ] {}
   ·                                   ┬
   ·                                   ╰── here
 3 │ }
   ╰────
  help: Expected one of: COMMENT, opens_invariants_mode
@jaybosamiya-ms
Copy link
Collaborator

Thanks for the report, #93 fixes this, and should be part of the next release once merged.

@jaybosamiya-ms jaybosamiya-ms added the bug Something isn't working label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants