MIR borrowck: missing suggestion to use a reference #46627
Labels
A-borrow-checker
Area: The borrow checker
A-diagnostics
Area: Messages for errors, warnings, and lints
A-NLL
Area: Non-lexical lifetimes (NLL)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
NLL-diagnostics
Working towards the "diagnostic parity" goal
When moving out of a value into a new let binding, AST borrowck suggests using a reference, but MIR borrowck does not.
e.g. for E0508:
We have the following error message
See that the help is only in the AST. We should port that help message to MIR borrowck.
The help message is generated in this place in AST borrowck:
rust/src/librustc_borrowck/borrowck/gather_loans/move_error.rs
Lines 77 to 87 in 02b4d3d
The text was updated successfully, but these errors were encountered: