-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Rust incorrectly accepts unbalanced parentheses #58886
Copy link
Copy link
Closed
Labels
A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
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-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Rust incorrectly accepts the following code (which is missing a
)):So far this seems to only happen if the code is inside a submodule. Shell script to reproduce:
My compiler version:
rustc 1.34.0-nightly (0ea22717a 2019-03-02)