syntax: Handle \r\n in byte string literals#16282
Merged
bors merged 1 commit intorust-lang:masterfrom Aug 6, 2014
Merged
Conversation
Contributor
|
|
Member
Author
|
Added a clause for that and updated the test as well. |
src/libsyntax/parse/mod.rs
Outdated
Contributor
There was a problem hiding this comment.
It would be perhaps a bit cleaner if this if-elseif-else is made into a match.
Contributor
|
r=me with comments addressed. |
This ended up passing through the lexer but dying later on in parsing when it wasn't handled. The strategy taken was to copy the `str_lit` funciton, but adapt it for bytes. Closes rust-lang#16278
flip1995
pushed a commit
to flip1995/rust
that referenced
this pull request
Dec 25, 2025
Closes rust-lang/rust-clippy#16281 changelog: [`cmp_null`] Don't suggest to inline macro contents instead of calling them
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.
This ended up passing through the lexer but dying later on in parsing when it
wasn't handled. The strategy taken was to copy the
str_litfunciton, but adaptit for bytes.
Closes #16278