Skip to content

feat: add inline_default_generic_parameter assist#21991

Closed
Amit5601 wants to merge 1 commit intorust-lang:masterfrom
Amit5601:feature/inline-default-generic
Closed

feat: add inline_default_generic_parameter assist#21991
Amit5601 wants to merge 1 commit intorust-lang:masterfrom
Amit5601:feature/inline-default-generic

Conversation

@Amit5601
Copy link
Copy Markdown
Contributor

@Amit5601 Amit5601 commented Apr 7, 2026

Fixes #20391.
Adds a new assist to inline a default generic parameter to all of its usages within the current file. Correctly distinguishes between path expressions and path types to avoid invalid syntax generation.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 7, 2026
@rustbot

This comment has been minimized.

@Amit5601 Amit5601 force-pushed the feature/inline-default-generic branch 2 times, most recently from ccacb16 to 33f6fe2 Compare April 7, 2026 17:19
@Amit5601 Amit5601 marked this pull request as draft April 7, 2026 17:21
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 7, 2026
Fixes rust-lang#20391.

Adds a new assist to inline a default generic parameter to all of its usages within the current file. Correctly distinguishes between path expressions and path types to avoid invalid syntax generation.
@Amit5601 Amit5601 force-pushed the feature/inline-default-generic branch from 33f6fe2 to 1960656 Compare April 8, 2026 14:27
@Amit5601 Amit5601 marked this pull request as ready for review April 8, 2026 14:47
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 8, 2026
@ChayimFriedman2
Copy link
Copy Markdown
Contributor

We have a feature freeze on assists. See https://github.com/rust-lang/rust-analyzer/blob/master/CONTRIBUTING.md.

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inline default generic parameter all usages

3 participants