-
Notifications
You must be signed in to change notification settings - Fork 8
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
The issue of semicolons affecting the lifecycle #22
Comments
Related: rust-lang/rust#70844 Per Rust spec those IfLet blocks are statements, hence semicolons should be meaningless and unnecessary. My understanding is that this is a longstanding bug in the rust compiler whereby "if let" is syntax sugar that gets unrolled into some code that itself is missing a semicolon. I'm inclined to say that the formatting is correct and that the issue is upstream. Maybe someone can correct me on that, otherwise I'd suggest adding |
When the code is formatted, it doesn't compile properly. This may be unreasonable. |
Input code
Output code
Additional context
The text was updated successfully, but these errors were encountered: