-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
A-assistsA-patternpattern handling related thingspattern handling related thingsC-featureCategory: feature requestCategory: feature requestS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
Sometimes, during refactoring, you can end up with assignments like
let (foo, bar) = (expr_a, expr_b);It would be nice if rust-analyzer had an assist to turn this into
let foo = expr_a;
let bar = expr_b;The same could also be helpful for
let StructStruct { a, b } = StructStruct { a: expr_a, b: expr_b };or
let TupleStruct(a, b) = TupleStruct(expr_a, expr_b);though I haven't seen one of those in the real world yet.
Metadata
Metadata
Assignees
Labels
A-assistsA-patternpattern handling related thingspattern handling related thingsC-featureCategory: feature requestCategory: feature requestS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now