Skip to content

Replace mod path to ast with factory where possible#22137

Merged
ChayimFriedman2 merged 14 commits intorust-lang:masterfrom
Shourya742:2026-04-22-replace-mod-path-to-ast-with-factory-where-possible
Apr 22, 2026
Merged

Replace mod path to ast with factory where possible#22137
ChayimFriedman2 merged 14 commits intorust-lang:masterfrom
Shourya742:2026-04-22-replace-mod-path-to-ast-with-factory-where-possible

Conversation

@Shourya742
Copy link
Copy Markdown
Member

I started migrating most assists that use mod_path_to_ast to their *_with_factory variants. During this process, I added a *_with_factory version for use_trivial_constructor and replaced it where needed. We also migrated convert_into_to_from.rs, as it was using mod_path_to_ast.

part of #15710 and #18285

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 22, 2026
Copy link
Copy Markdown
Contributor

@ChayimFriedman2 ChayimFriedman2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread crates/ide-assists/src/handlers/convert_into_to_from.rs
@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Apr 22, 2026
Merged via the queue into rust-lang:master with commit cc360fc Apr 22, 2026
18 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 22, 2026
asukaminato0721 pushed a commit to asukaminato0721/rust-analyzer that referenced this pull request Apr 22, 2026
…-mod-path-to-ast-with-factory-where-possible

Replace mod path to ast with factory where possible
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.

3 participants