-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Description
Now that box
is 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:
box 3 + 4
should parse as
box (3+4)
and not
(box 3) + 4
Nominating.
schneiderfelipe
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