• v0.21.0
    ci / checks (push) Successful in 49s
    ci / corpus (push) Successful in 20s
    release / build-and-publish (push) Successful in 4m58s
    Stable

    lucio released this 2026-09-01 15:03:36 -07:00 | 244 commits to master since this release

    Null items: endgenerate; parses — and everywhere else a stray ; may
    legally stand.

    The report was "for loop inside generate fails"; the diagnosis was that
    every generate-for spelling — and three published examples — already
    parsed, and the failing token was the lone ; after endgenerate.
    IEEE 1800-2017 A.1.4 makes that a null item, legal in module,
    generate, package, interface, program and class scope and at file
    scope; lucisv rejected it in all of them with expected item. Now
    ItemKind::Empty, accepted by one parser branch, laid out where it
    was written (glued to the previous line for endgenerate; / end; /
    endmodule; / ;;, or on its own line), token-preserving and
    idempotent both ways. verify.rs untouched; eight masked-corruption
    attack pairs (a dropped ;, one moved across a comment, into a
    procedural block, between `ifdef arms) all rejected.

    New lint empty-item (slang's -Wempty-member): warns on a null
    item; its safe fix deletes the ; — and the line, when nothing else
    stood on it — with a deletion range that structurally cannot swallow a
    comment. In the editor, a file that used to show a parse error now
    shows a warning with a quick fix and fix all.

    Formatter output changes only for files that contain a null item;
    the 820-file corpus is byte-identical (813/820) and the opentitan
    sweep is unchanged file-for-file. Version bumped per the format-cache
    rule.

    Downloads