6

feat: Add a "Unmerge match arm" assist to split or-patterns inside mat...

 2 years ago
source link: https://github.com/rust-lang/rust-analyzer/pull/13145
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Contributor

@ChayimFriedman2 ChayimFriedman2 commented 9 days ago

Fixes #13072.

The way I implemented it it leaves the OrPat in place even if there is only one pattern now but I don't think something will break because of that, and when more code will be typed we'll parse it again anyway. Removing it (but keeping the child pattern) is hard, I don't know how to do that.

fmease reacted with heart emoji All reactions

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK