Collect occurrences of {}
for mismatched braces diagnostic
#63904
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Many editors helpfully auto close delimiters when writing them down. It is not uncommon for this to cause the following to occur:
It'd be a good idea for the parser or lexer to keep track of these empty blocks to provide an error closer to
The text was updated successfully, but these errors were encountered: