Skip to content

Implement typed HIR variant frontend - #374

Merged
LunaStev merged 2 commits into
wavefnd:masterfrom
LunaStev:feat/frontend-typed-hir-variant
Aug 27, 2026
Merged

LunaStev merged 2 commits into
wavefnd:masterfrom
LunaStev:feat/frontend-typed-hir-variant

Conversation

@LunaStev

Copy link
Copy Markdown
Member

Summary

  • introduce a backend-neutral typed HIR boundary with stable expression and pattern identities
  • implement generic payload variant declarations, constructors, recursive patterns, exhaustiveness, finite-size checks, and C ABI exposure guards
  • resolve variant types and constructors through selected, namespaced, and re-exported imports
  • remove the temporarily unavailable wavefnd GitHub Sponsors entry from FUNDING.yml

Backend boundary

LLVM variant layout and lowering are intentionally left for the follow-up backend change. Explicit guards prevent variant types or patterns from reaching legacy LLVM lowering silently.

Validation

  • cargo fmt --all --check
  • cargo test --workspace --locked --jobs 2
  • cargo clippy --locked --all-targets --jobs 2 -- -D warnings
  • RUSTDOCFLAGS=-D warnings cargo doc --locked --no-deps --jobs 2
  • git diff --check

@LunaStev
LunaStev merged commit 182f864 into wavefnd:master Aug 27, 2026
6 checks passed
@LunaStev LunaStev mentioned this pull request Sep 30, 2026
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