Skip to content

refactor(link_stage): simplify exports-kind filter and clarify safety comments#9178

Merged
IWANABETHATGUY merged 0 commit into04-20-docs_compute_tla_designfrom
04-21-refactor_simplify_module_exports_kind_filter
Apr 22, 2026
Merged

refactor(link_stage): simplify exports-kind filter and clarify safety comments#9178
IWANABETHATGUY merged 0 commit into04-20-docs_compute_tla_designfrom
04-21-refactor_simplify_module_exports_kind_filter

Conversation

@IWANABETHATGUY
Copy link
Copy Markdown
Member

@IWANABETHATGUY IWANABETHATGUY commented Apr 21, 2026

Collapse the two-step filter_map + for_each in determine_module_exports_kind so the iterator yields (rec, &NormalModule) directly via Module::as_normal, removing the inline let-else inside the closure. Also rewrites the SAFETY: and promotion comments to be clearer about what each branch does and why self-import aliasing is safe.

Copy link
Copy Markdown
Member Author

IWANABETHATGUY commented Apr 21, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label graphite: merge-when-ready to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@IWANABETHATGUY IWANABETHATGUY changed the title u refactor(link_stage): simplify exports-kind filter and clarify safety comments Apr 21, 2026
@IWANABETHATGUY IWANABETHATGUY force-pushed the 04-21-refactor_simplify_module_exports_kind_filter branch from f642a48 to e780042 Compare April 22, 2026 12:37
@IWANABETHATGUY IWANABETHATGUY merged commit e780042 into 04-20-docs_compute_tla_design Apr 22, 2026
5 of 6 checks passed
@IWANABETHATGUY IWANABETHATGUY force-pushed the 04-20-docs_compute_tla_design branch from 6714f4a to 14a1a08 Compare April 22, 2026 12:37
@IWANABETHATGUY IWANABETHATGUY deleted the 04-21-refactor_simplify_module_exports_kind_filter branch April 22, 2026 12:37
@IWANABETHATGUY IWANABETHATGUY restored the 04-21-refactor_simplify_module_exports_kind_filter branch April 22, 2026 12:39
graphite-app Bot pushed a commit that referenced this pull request Apr 22, 2026
… comments (#9205)

Collapse the two-step `filter_map` + `for_each` in `determine_module_exports_kind` so the iterator yields `(rec, &NormalModule)` directly via `Module::as_normal`, removing the inline `let-else` inside the closure. Also rewrites the `SAFETY:` and promotion comments to be clearer about what each branch does and why self-import aliasing is safe.

Note: replaces #9178 which was auto-closed as merged after a stack reorder (GitHub detected all its commits were in its former base branch). Same content, now targeting main directly.
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.

1 participant