Repository navigation
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.
Description
Activity
Likely introduced in #57944. I'll take a look at it tomorrow. It's likely me forgetting to call
emit_unclosed_delimsin some scope.- addedA-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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.P-highHigh priorityHigh priorityregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.and removedregression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
on Mar 3, 2019 Thanks for reporting this and fixing, with tests! This can be a bit disconcerting if you dev on nightly, but target some stable (which will then fail to build): dekellum/body-image@dc78182b66
- added a commit that references this issue
on Mar 7, 2019 - added a commit that references this issue
on Mar 8, 2019 - added a commit that references this issue
on Mar 16, 2019 - added a commit that references this issue
on Sep 3, 2020
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.
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)