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
Suggest visible nearby names for undefined-identifier diagnostics #1027
discussionIssues that require a technical or community discussion.enhancementA request for a new feature or improvement.help wantedThe issue requires extra attention or help from others.
A local count followed by coutn produces an undeclared-identifier message with no spelling candidates. The diagnostic type already has suggestions, but no visibility-aware nearby-name policy is provided by this path.
Audited canonical Wave 540728c2eb6cc12f5c69c3fb3fdb96e07ba059a4 (0.0.1-alpha-dev), whose tree matches the local checkout. Validation: Executed undefined-name diagnostic and inspected suggestion interfaces. Executed compiler probes use the matching checkout-built compiler and std on Linux amd64 (Rust 1.89.0 / LLVM 21.1.8). Source/header or mocked checks are not native execution on another OS.
Scope
Choose a bounded typo-suggestion policy scoped to the current namespace/visibility. Keep this separate from global parser restructuring and never expose hidden names.
Design discussion required
This issue records a proposal or an unresolved contract; it is not approval to choose new semantics. Please mention @LunaStev to discuss the design before starting implementation.
Completion criteria
A close visible name is suggested with a bounded number of candidates.
Private, inaccessible and wrong-namespace names are excluded.
Deterministic ranking, Unicode inputs and no-good-match cases have coverage.
discussionIssues that require a technical or community discussion.enhancementA request for a new feature or improvement.help wantedThe issue requires extra attention or help from others.
Activity
Complete eight follow-up bundles for Whale, diagnostics, std and CI (#…