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

Stricter parsing of string_continue escape in cooked byte string literal #1474

Merged
merged 1 commit into from Jun 24, 2023

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jun 24, 2023

This applies the changes from #1381, which only touched string literals, to byte string literals as well.

println!("{:?}", syn::parse_str::<syn::LitByteStr>("b\"\\\n\x0b\x0c\x0a.\"").unwrap().value());

Before: [46]
Correct value: [11, 12, 10, 46]

@dtolnay dtolnay merged commit a5f92e1 into master Jun 24, 2023
28 checks passed
@dtolnay dtolnay deleted the bytestrspaces branch June 24, 2023 19:19
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