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
Preserve local syntax failures in proto method attachment blocks #975
Malformed existing proto Type { ... } blocks use a generic fallback and can highlight the token after the actual invalid target name. The error does not name the missing target identifier, opening brace, or method declaration.
Reproduction
Audited canonical master 42b65e426ad45bf896623b5bce814312b694a0c7 on Linux amd64 with Rust 1.89 and LLVM 21.1.8. Reproductions use the checkout-built target/debug/wavec and matching checkout std. The local head d2f58962 has an identical file tree to that canonical merge. Commands below assume WAVEC names that binary.
proto 123 {}
fun main() {}
"$WAVEC" --error-format=json check main.wave
Observed: failed to parse proto implementation at { (column 11 in the one-line form), after consuming 123. parse_proto contains the discarded target-name and body-token explanations.
Scope
Migrate only the already supported method-attachment grammar to specific ParseError values, preserving exact token spans and nested function errors. Named proto contracts and generic constraints remain #365/#348; do not implement or redesign them here.
Activity
Improve source diagnostics and reject recursive inline storage (wavef…