Unboxing suggestion does not add parentheses where needed #132924
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
The current output is incorrect, and leads to the same suggestion over and over again if we keep applying it. The relevant code is
rust/compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs
Line 2834 in 81eef2d
See
rust/compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs
Line 2651 in 81eef2d
Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: