Skip to content

fix: preserve imported bindings in extract module - #23305

Open
jassem-manita wants to merge 1 commit into
rust-lang:masterfrom
jassem-manita:fix/23258-extract-module-use-bindings
Open

fix: preserve imported bindings in extract module#23305
jassem-manita wants to merge 1 commit into
rust-lang:masterfrom
jassem-manita:fix/23258-extract-module-use-bindings

Conversation

@jassem-manita

@jassem-manita jassem-manita commented Sep 7, 2026

Copy link
Copy Markdown

Fixes #23258.

Track import bindings by name and scope so extract_module only rewrites usages that actually lose their binding after the move. Also handles aliases, block-local imports, and block pseudo-modules, with regression tests for those cases.

AI disclosure: Codex was used to help navigate the codebase and understand the surrounding issue context.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 7, 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.

Extract module with use bindings adds qualifier to usages

2 participants