Redundant semicolons are parsed as an empty tuple semicolon statement #63679
Labels
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the above example, the rustc parser used to silently drop the redundant semicolons (
;;;
) from the AST. However, recently the parse has changed how it treats the redundant semicolons - they are now parsed as a semicolon statement with an empty tuple:Found this while updating rustc-ap-syntax to 562.0.0 (which is built from the commit fc8765d) in rustfmt.
The text was updated successfully, but these errors were encountered: