Codegen lookup_ctor_in_pattern type-anchoring #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
crates/ailang-codegen/src/lib.rs:1790still walks every module's ctor_index by bare ctor name. Plumbing the scrutinee's qualifiedType::Conthrough pattern lowering would type-anchor it symmetric to the ct.2.2 typecheck-side fix. Not load-bearing (uniqueness is enforced at typecheck), but cleaner.context: surfaced in iter ct.3 + ct.4 close (2026-05-11).
Verification 2026-06-02: Still VALID.
lookup_ctor_in_patternnow atcrates/ailang-codegen/src/lib.rs:2385(was 1790). It still looks up by barector_name: &stragainstmodule_ctor_index, with a fallback loop walking every module'sctor_indexby bare name — no qualifiedType::Conthreaded through.