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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
Breaking: a $ on a variadic pack parameter, as in fun sum($va: ...) i64, is refused at the $ as pack.comptime. A pack is already unrolled at compile time. The declaration used to check, and a call was then refused with an unrelated call.arity message or, with one constant argument, compiled to an empty pack (#5106).
Breaking: a modifier a declaration does not take is refused at the modifier where it used to be dropped without a word: ext before fwd, use, test, def, rec, uni or tag (fwd.ext, use.ext, test.ext, def.ext, rec.ext, uni.ext, tag.ext), and pub before use or test (use.pub, test.pub). pub fwd is refused as fwd.pub as before (#5106).
doc/language/grammar.md states what the parser accepts: #[noreturn] before an asm block, dotted decorator names of any length, the statement-level $error reading an expression, a trailing comma in a function type's parameters, the generic instance f[T] as a value, a tag literal's member-init list, and the $each sequence reading no typed literal (#5104).
Fixed
A project analyzed for a tool through the editor library, as mach-lsp does, was given up on whole when one artifact's entry file could not be read, and with more than one target the read failure could be replaced by unrelated use.unresolved diagnostics on std's runtime modules, naming the missing file nowhere. Such an entry is now reported once at its entry key in mach.toml and every other artifact is loaded, resolved and checked. A build of one artifact still stops on its own entry, and a load failure is never replaced by a rejection that does not account for it (#5108).
Issues resolved (3)
#5104 doc/language/grammar.md disagrees with the parser
#5106 a $ on a pack parameter and ext on fwd are accepted and mishandled
#5108 a union load gives up on the whole project when one artifact's entry cannot be read