Tighten "introduce new binding" suggestion #104086
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: link
The current output is:
Ideally the output should first check the RHS, before suggest adding
let
. It should also avoid suggesting when code is invalid. Thanks.Something like this should also not suggest adding
let
: linkcc @chenyukang
The text was updated successfully, but these errors were encountered: