Split BadCrossModuleTypeRef into two diagnostics #11
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?
The current single shape collapses unknown-owner and known-owner / unknown-type-in-owner into one message. The two cases suggest different fixes (add
(import <owner>)vs. fix the type name). In the known-owner branch, list the owner's available type defs as candidates the waybare-cross-module-type-reflists candidates from imports.context: fieldtest 2026-05-11 —
examples/ct_3*.ailexhibits both branches with identical-shape diagnostics.Verified still VALID 2026-06-02. Note: the existing
BareCrossModuleTypeRef/BadCrossModuleTypeRefsplit is a different axis (bare vs qualified reference), not the split this issue asks for.BadCrossModuleTypeRefstill collapses the two qualified sub-cases into one{ module, name }shape: unknown-owner (crates/ailang-core/src/workspace.rs:1101, prefix not inlocal_types) and known-owner/unknown-type (workspace.rs:1106, owner exists but lacks the suffix). Neither lists the owner's available TypeDefs as candidates the way the bare path does. The ask stands.