Skip to content

forbid redundant semicolons #5905

Closed
Closed
@thestinger

Description

@thestinger

Currently valid:

fn main() {
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
}

I don't think there's a good reason to allow a semicolon except after an actual statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserArea: The lexing & parsing of Rust source code to an AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions