Skip to content
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

Move check for full parse into token_stream parser #280

Merged
merged 1 commit into from
Apr 1, 2021
Merged

Move check for full parse into token_stream parser #280

merged 1 commit into from
Apr 1, 2021

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Apr 1, 2021

The previous factoring, of having FromStr perform both the parse and the check for whether the complete input was parsed, is leftover from prior to #231 when the token_stream parser used to need to invoke itself recursively to parse the content of nested groups. That is no longer the case so token_stream can be responsible for the whole thing, including returning error on unparseable trailing characters.

@dtolnay dtolnay merged commit 2b5e2f8 into dtolnay:master Apr 1, 2021
@dtolnay dtolnay deleted the check branch April 1, 2021 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant