feat: Add a "Unmerge match arm" assist to split or-patterns inside mat...
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.
Contributor
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.
Recommend
-
10
:focus should match inside the focus and DOMFocusIn events
-
6
220243 – [selectors] :focus should match inside the focus event Status: RESOLVED FIXED
-
2
added title · juzhiyuan/blog@05f7f63 · GitHubPermalink
-
19
支持 GA · juzhiyuan/blog@c0a5ded · GitHubPermalink
-
3
Contributor ...
-
4
Conversation Contributor...
-
6
Assist to turn match into matches! invocation by pocket7878 · Pull Request #13005 · rust-lang/rust-analyzer · GitHub
-
5
Unnamed variables and match-all patterns Unnamed variables and match-all patterns Brian Goetz
-
8
@@ -333,6 +333,8 @@ pub struct InferenceResult { ...
-
7
Conversation Contributor...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK