-
-
Notifications
You must be signed in to change notification settings - Fork 15k
(use<> forgets to look for ) #145470
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.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
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.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
In the following code, after
(use<>, while still inside parenthesized content, the parser successfully parses the function body and tuple struct, oblivious that these were supposed to have been outside).It seems pretty clear to me that this is unintended behavior, not some kind of intentional parsing recovery. The same bug does not occur for a mismatched parenthesis around lifetime bound or trait bound.