Skip to content

refactor: intern module definitions in HIR#283

Merged
hongjr03 merged 2 commits into
masterfrom
refactor/hir-module-def-id
Jun 26, 2026
Merged

refactor: intern module definitions in HIR#283
hongjr03 merged 2 commits into
masterfrom
refactor/hir-module-def-id

Conversation

@hongjr03

@hongjr03 hongjr03 commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary: Move logical definition identity into HIR as ModuleDefOrigin, ModuleDef, and interned ModuleDefId. Convert PathResolution to ModuleDefId at the HIR boundary and update IDE consumers. Remove the IDE local DefinitionKey and Definition PathResolution model while keeping preprocessor macro keys untouched. Keep origins inline with SmallVec to avoid common path heap allocation. Validation: cargo build, cargo build release, cargo fmt check, cargo clippy workspace all targets with warnings denied, cargo test workspace, cargo check ide, cargo clippy hir ide lib with warnings denied, git diff check.

@hongjr03 hongjr03 marked this pull request as ready for review June 26, 2026 16:05
@github-actions

Copy link
Copy Markdown

Docs preview: https://vide.pascal-lab.net/preview/pr-283/

@hongjr03 hongjr03 merged commit da52b63 into master Jun 26, 2026
18 checks passed
@hongjr03 hongjr03 deleted the refactor/hir-module-def-id branch June 26, 2026 16:11
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