-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parser recovery at item level #4964
Conversation
9cb211b
to
99e72e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comments are in files, but nothing worth postponing the merge.
3f8df29
to
d106e62
Compare
d106e62
to
0c9ce00
Compare
@JoshuaBatty @ironcev I had to rebase and fix a conflict. Can I get a "re-review" here? The rest is the same. |
Description
Closes #4910.
Closes #4909.
Closes #4908
The trait
Parse
now contains a do-nothingerror
function that returns the error variant for that item, if it has one. This allows generic parsing functions likeVec
,Annotated
etc... to be able to recover and continue if desired.Now the parser continues even if strange things at the item level.
Checklist
Breaking*
orNew Feature
labels where relevant.