You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Separate type collection and numeric rules from semantic validation #720
enhancementA request for a new feature or improvement.help wantedThe issue requires extra attention or help from others.refactorIssues that require code refactoring without changing functionality.
front/parser/src/verification.rs combines program type collection, alias lookup, binding scopes, expression/control-flow validation, numeric compatibility rules, HIR fact recording, and diagnostics. Contributors changing a numeric rule must navigate unrelated declaration and validator-state machinery.
Scope
Extract cohesive modules behind the existing verification facade in two reviewable stages:
Program/type collection and alias lookup around ProgramTypes.
Pure numeric compatibility, literal-range, and assignability helpers.
Keep mutable Validator state, spans, and HIR recording with their current owner while establishing these boundaries. Define a one-way dependency structure without exposing internals solely for tests.
This is a behavior-preserving extraction. Semantic fixes, diagnostic migration (#346), and new conversion policies belong in separate changes.
Completion criteria
Preserve public entry points, accepted/rejected programs, diagnostic codes/spans, and typed-HIR facts.
Give each extracted module a clear responsibility documented in code.
Add focused tests for independently testable helpers.
Pass existing parser, frontend, and codegen regressions without module cycles or unrelated behavior changes.
changed the title [-][Proposal]: Separate semantic type collection and numeric rules from the validator[/-][+]Separate type collection and numeric rules from semantic validation[/+]on Sep 24, 2026
enhancementA request for a new feature or improvement.help wantedThe issue requires extra attention or help from others.refactorIssues that require code refactoring without changing functionality.
Activity
[-][Proposal]: Separate semantic type collection and numeric rules from the validator[/-][+]Separate type collection and numeric rules from semantic validation[/+]Record typed HIR conversions and add checked std operations (#744)