-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-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.
Milestone
Description
MIR-borrowck: In error diagnostics, derefencing expressions are printed with parentheses around them.
For example, for borrowck-borrow-mut-object-twice.rs
, AST-borrowck reports:
cannot borrow `*x` as mutable more than once at a time (Ast)
while MIR-borrowck reports:
cannot borrow `(*x)` as mutable more than once at a time (Mir)
(This is hopefully relatively simple to resolve; is there any case where we need the parentheses, given that we already elide dereferences when printing field accessor expressions?)
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-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.