Description
Location
rust/obs-callback/tests/callback/decl_parity.rs:excluded.
Class
Differential test input filtering error.
How it is reached
Fast Gate on #1530 failed random_pieces_match_oracle. The generated declaration ends in a line splice inside a comment. This is an existing documented oracle exclusion in rust/obs-util/tests/config/cf_tokenizer_parity.rs, but the declaration tests that call the tokenizer did not carry it forward. See run 39467032007, job 118781234889.
Proposed fix and failing test
Add focused assertions for the declaration filter, then exclude exactly terminal line splices within comment or string tokens. Keep ordinary trailing splices and unterminated comments without a splice covered. No production parser changes or C test changes.
Decisions
A separate prerequisite for the individual bug fixes split from #1462. Reuse the already documented tokenizer oracle limitation rather than changing Rust to match an undefined C result.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 20, 2026
Claiming: restore the existing tokenizer oracle exclusion in the declaration tests. 1. Add a failing filter regression. 2. Fix the filter without changing production code. 3. Verify differential tests and land a separate prerequisite PR today.
zackees commentedon Oct 20, 2026
Fixed and merged in #1542. Declaration differential tests now carry the existing tokenizer oracle exclusion only for terminal line splices inside comment/string tokens. The filter regression and all declaration parity tests pass. No production parser changes; no remaining work for this issue.
test: carry tokenizer oracle exclusions into declaration parity (obs-…
zackees commentedon Oct 23, 2026
Done in #1542 (see zackees' last comment). A remaining gap, leading whitespace merged into the comment token, is fixed in #1889 under #1549.