Add "make mutable" diagnostic / quick fix for local variables #8449
Labels
A-diagnostics
diagnostics / error reporting
S-actionable
Someone could pick this issue up and work on it right now
Example:
To reproduce:
pu
=> getVec::push
suggestedfoo.push(value)
Desired outcome:
let foo = Vec::new();
is changed tolet mut foo = Vec::new();
when accepting the suggestionActual outcome:
let foo = Vec::new();
is not changedI would love if ra did this because that would require less jumping around the code.
The text was updated successfully, but these errors were encountered: