Every fix makes the AST carry a fact the formatter used to invent or
discard: SensSep preserves each event-list separator as written
(, stays , / or stays or, mixed lists round-trip); module-header
imports keep one statement per import; Instantiation::params and
Module::param_ports become Option<Vec> so empty #() survives; and
seven distinct comment-motion shapes (closing paren, empty
connection, declarator-to-;, after binary operator, case labels,
ternary, assign-to-value) keep comments where the source put them,
with Fmt::inline_comments as the single comment-run printer.
verify.rs is byte-identical: the net was right on all 46 refusing
files. Seven new rejection tests pin that judgment (sabotage-checked
by QA). Also removes a latent split_off underflow panic
(Parser::take_around) that QA reproduced on the pre-fix binary, and
fixes the ternary comment refusal from the earlier bug round.
Corpus after: 468/820 parse, 0 verification errors, 0 crashes —
corpus_check.sh exits 0 for the first time. Exactly 46 files moved
verification-error -> would-reformat by path diff; nothing else
changed. 111 workspace tests (was 98), case table 237 entries,
clippy silent.
Dev: Opus agent; QA: Sonnet agent (all claims independently
reproduced); review in docs/features/corpus-bugs/README.md.
Co-Authored-By: Claude Fable 5 <[email protected]>