Post-#112261 pointer += integer diagnostics suggest replacing with unused value #137391
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-raw-pointers
Area: raw pointers, MaybeUninit, NonNull
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
stable:
nightly:
Desired output
known_rgbs_groups = known_rgbs_groups.add(ga_z.len());
Rationale and extra context
known_rgbs_groups.add(ga_z.len());
doesn't do anything 💀Rust Version
Anything else?
This is #112261, and in 20 comments and 4 review rounds no-one tried += lol
The text was updated successfully, but these errors were encountered: