Validate explicit generic type arguments even when the parameter is unused
Problem
An unknown type is accepted as an explicit generic argument when the type parameter is absent from the function signature/body. Nested unknown pointer and array element types are also accepted.
Reproduction and evidence
Audited canonical master 69a67c6e0fb700f37ee6114f5a66d37ee13771a5 (0.0.1-alpha-dev). Matching checkout-built compiler/std were used for compiler probes on Linux amd64 with Rust 1.89.0 and LLVM 21.1.8. Artifact inspection, mocked/projection checks and foreign-target object emission are identified below and are not native execution on those operating systems.
fun f<T>()->i32{return 0;}fun main()->i32{return f<Missing>();}
target/debug/wavec --std-root "$PWD/std" build repro.wave --emit=check
target/debug/wavec --std-root "$PWD/std" build repro.wave --emit=ir --out-dir out
Both commands exit 0. Substituting ptr<Missing> or array<Missing,2> also passes. Using the same missing type in actual local storage correctly produces E3001.
Scope
Run established type validation on every explicit call type argument, independently of whether specialization later uses it. Respect current generic scopes and canonical aliases.
Starting points: front/parser/src/verification.rs:1295, front/parser/src/verification.rs:1430.
Completion criteria
- [ ] Reject missing direct/nested types at their source argument.
- [ ] Keep valid aliases, nested types and in-scope generic parameters accepted.
- [ ] Test check/IR and human/JSON diagnostics.
This is a bounded newcomer task with the starting point and focused negative/positive checks above.
Related: #435, #393. Related broad trackers or completed implementations are context, not claims that their entire scope is unfinished.