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
Show both declaration locations when reporting duplicate names #995
Duplicate-name errors identify the name but provide no related location for the earlier declaration. Some aggregate-member conflicts highlight the aggregate name instead of the duplicate member, making larger modules harder to repair.
Audited canonical master 540728c2eb6cc12f5c69c3fb3fdb96e07ba059a4 on Linux amd64 with a checkout-built Wave 0.0.1-alpha-dev, matching checkout std, Rust 1.89.0 and LLVM 21.1.8. Executed check and IR-build JSON diagnostics:
struct S { x: i32; x: i64; }
fun main() {}
Reports duplicate field x in struct S at line 1 column 8 (the S), with an empty related array. Likewise fun f() {} fun f() {} fun main() {} identifies the second function but supplies no first-definition note. A local duplicate variable also has no previous-definition location.
Scope
Retain declaration identities/spans so duplicate functions, same-scope variables and aggregate members can point at the repeated name and add the original location as a related label. Preserve existing duplicate rejection, shadowing rules, deterministic ordering, codes and JSON schema. Do not redesign name resolution or expand umbrella #346 into an unbounded migration.
Completion criteria
The primary span selects the repeated declaration/member name, including multiline and Unicode fixtures.
A related label points to the first conflicting declaration when its source is available.
Human and JSON diagnostics agree, while legal nested-scope shadowing remains accepted.
Activity
Complete eight follow-up bundles for Whale, diagnostics, std and CI (#…