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

Bypass a round trip through TokenBuffer in LitStr::parse #1221

Merged
merged 1 commit into from Sep 24, 2022
Merged

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Sep 24, 2022

crate::parse_str::<TokenStream> is gonna turn &str into TokenStream into TokenBuffer into TokenStream. Only the first conversion is needed in this context.

@dtolnay dtolnay merged commit 8f0368e into master Sep 24, 2022
@dtolnay dtolnay deleted the litparse branch September 24, 2022 21:16
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.

None yet

1 participant