Skip to content

fix: Improve label on add_missing_match_arms assist#21920

Open
Wilfred wants to merge 1 commit intorust-lang:masterfrom
Wilfred:claude/update-match-arms-message-2RJMd
Open

fix: Improve label on add_missing_match_arms assist#21920
Wilfred wants to merge 1 commit intorust-lang:masterfrom
Wilfred:claude/update-match-arms-message-2RJMd

Conversation

@Wilfred
Copy link
Copy Markdown
Contributor

@Wilfred Wilfred commented Mar 31, 2026

"Fill match arms" is an extremely helpful assist, but the name is pretty opaque to new users (at least it was to me). We actually renamed the file in #10299 from fill_match_arms.rs to add_missing_match_arms.rs but the label hasn't changed from its original text in #733.

Instead, show "Add missing match arms" if there are multiple missing match arms, and show "Add missing match arm Foo::Bar" when there's only a single missing match arm.

Partially generated by Claude Opus.

"Fill match arms" is an extremely helpful assist, but the name is
pretty opaque to new users (at least it was to me). We actually
renamed the file in rust-lang#10299 from
`fill_match_arms.rs` to `add_missing_match_arms.rs` but the label
hasn't changed from its original text in rust-lang#733.

Instead, show "Add missing match arms" if there are multiple missing
match arms, and show "Add missing match arm `Foo::Bar`" when there's
only a single missing match arm.

Partially generated by Claude Opus.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants