Repository navigation
Record the furthest meaningful failure for unverified examples too (#588) - #600
Merged
Merged
Conversation
) PR #572 did this for expect-error blocks. Ordinary unverified ones still kept the first failure, and standalone runs before the wrappers, so a statement fragment was recorded as Top-level 'let' at line 1 must be 'let mut' which is the harness failing to wrap a fragment, not the compiler saying anything about the program. Where a later rung reached the type checker, that is what the ledger now carries. 74 of the 221 entries move from a superficial parse error to the real reason: parse 173 -> 99 types 29 -> 103 clang 19 -> 19 The counts are unchanged; only the diagnosis is. That matters because the ledger is the worklist for driving the remaining blocks to zero, and half of it was describing the harness rather than the example. Closes #588 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #588. Extends what #572 did for
expect-errorblocks to ordinary unverified ones.The problem
standaloneruns before the wrappers, so a statement fragment was recorded as:That is the harness failing to wrap a fragment. It says nothing about the program. Where a later rung reached the type checker and failed for a real reason, that reason was thrown away.
After
74 of the 221 entries now carry the real reason:
The counts are unchanged; only the diagnosis is. That matters because the ledger is the worklist for #583, and half of it was describing the harness rather than the example.
Verification
check_doc_examples.py --check-ledgerpyteston the doc tooling tests