-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Test coverage for double trailing commas is poor #46238
Copy link
Copy link
Closed as not planned
Labels
A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.S-candidate-for-closingStatus: This issue will be closed after a week or so unless objections are raised.Status: This issue will be closed after a week or so unless objections are raised.
Metadata
Metadata
Assignees
Labels
A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.S-candidate-for-closingStatus: This issue will be closed after a week or so unless objections are raised.Status: This issue will be closed after a week or so unless objections are raised.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Theory
Every place in the grammar which supports trailing commas should be tested that it fails for double commas, lest Rust be locked into supporting it forever. A particularly notable case of this is for
macro_rules!macros, many of which must manually implement their own trailing comma support (leading to more chances for mistakes).Reality