Skip to content

fix(types): reserve type alias namespace names#496

Merged
slepp merged 1 commit intomainfrom
fix/alias-namespace-collision
Apr 1, 2026
Merged

fix(types): reserve type alias namespace names#496
slepp merged 1 commit intomainfrom
fix/alias-namespace-collision

Conversation

@slepp
Copy link
Copy Markdown
Contributor

@slepp slepp commented Apr 1, 2026

Summary

  • reserve top-level type alias names in the shared type namespace during collect_types
  • fail closed on alias collisions before inserting into type_aliases
  • add negative coverage for duplicate alias, alias-vs-struct, and alias-vs-trait collisions

Testing

  • cargo test -p hew-types --quiet
  • cargo clippy -p hew-types --tests -- -D warnings

@slepp slepp enabled auto-merge (squash) April 1, 2026 22:37
@slepp slepp merged commit 2d24dcb into main Apr 1, 2026
12 checks passed
@slepp slepp deleted the fix/alias-namespace-collision branch April 1, 2026 22:48
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