Skip to content

Fill match arms assist ignores existing variants prefixed with Self:: #4650

@yaahc

Description

@yaahc

Right now if you have an enum that has some match arms and a match like this:

match x {
    Self::V1 => todo!(),
    Self::V2 => todo!(),
}

and you add a new variant and then run the fill match arms assist it will insert additional copies of V1 and V2 in the match arms that are prefixed with the types own name rather than Self.

Metadata

Metadata

Labels

A-assistsA-patternpattern handling related thingsC-bugCategory: bugS-actionableSomeone could pick this issue up and work on it right now

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions