Skip to content

refactor: honor #[path] attribute when loading modules#1882

Closed
thedataking wants to merge 1 commit into
perl/const-block-unsafe-transmutefrom
perl/honor-path-attribute
Closed

refactor: honor #[path] attribute when loading modules#1882
thedataking wants to merge 1 commit into
perl/const-block-unsafe-transmutefrom
perl/honor-path-attribute

Conversation

@thedataking

Copy link
Copy Markdown
Contributor

The refactor tool's module loader ignored #[path = "..."] and always derived the file from the module name. The transpiler emits #[path] for modules whose name was deconflicted from a sibling (e.g. hash.c and hash/ becoming hash_ and hash), so honor it and fall back to the name-based lookup otherwise.

@thedataking thedataking requested a review from ahomescu July 3, 2026 02:29
@thedataking

Copy link
Copy Markdown
Contributor Author

Folded into #1858 — the honor-#[path] change is the refactor-side companion to that PR's transpile-side emit of #[path], so they belong in one PR.

@thedataking thedataking closed this Jul 3, 2026
@thedataking thedataking deleted the perl/honor-path-attribute branch July 3, 2026 02:39
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