-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Precedence of box is possibly wrong #21192
Copy link
Copy link
Closed
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustC-bugCategory: This is a bug.Category: This is a bug.P-lowLow priorityLow priorityT-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustC-bugCategory: This is a bug.Category: This is a bug.P-lowLow priorityLow priorityT-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
Now that
boxis a keyword, and not the~operator, I think it's precedence is wrong. It maintains the precedence of a symbolic unary operator but I think keyword unary operators should have lower precedence.In practical terms, this means that I think:
should parse as
and not
Nominating.