]> git.ipfire.org Git - thirdparty/gcc.git/commit
Improve parsing of raw byte string literals
authorOwen Avery <powerboat9.gamer@gmail.com>
Wed, 27 Mar 2024 00:16:08 +0000 (20:16 -0400)
committerCohenArthur <arthur.cohen@embecosm.com>
Wed, 27 Mar 2024 10:56:04 +0000 (10:56 +0000)
commit67928be5b05ab927baf0a366689c246ec61ed745
tree3f89641ee6bc815bf1fa4598d5a6f10d4529ecb8
parent65f283df777fd05b5e45d054e457b271d12ec2dc
Improve parsing of raw byte string literals

gcc/rust/ChangeLog:

* lex/rust-lex.cc
(Lexer::parse_raw_byte_string):
Bring handling of edge cases to par with parse_byte_string.

gcc/testsuite/ChangeLog:

* rust/compile/raw-byte-string-loc.rs: New test.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/lex/rust-lex.cc
gcc/testsuite/rust/compile/raw-byte-string-loc.rs [new file with mode: 0644]