MIR-borrowck: dereferences are printed wrapped in parens #45185
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Milestone
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:while MIR-borrowck reports:
(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?)
The text was updated successfully, but these errors were encountered: