]> git.ipfire.org Git - thirdparty/gcc.git/commit
Improve parsing of raw string literals
authorOwen Avery <powerboat9.gamer@gmail.com>
Wed, 27 Mar 2024 01:10:05 +0000 (21:10 -0400)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Thu, 28 Mar 2024 11:23:31 +0000 (11:23 +0000)
commite36c3ece68cecba3170ab2d35de6e0a0c8bac40e
tree2d2f246f69ac9e8e9b34bfa5c947d0f2756c0b11
parent01092b83913733d26f2c4d9bfdc22ff2eb0b0bbb
Improve parsing of raw string literals

gcc/rust/ChangeLog:

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

gcc/testsuite/ChangeLog:

* rust/compile/raw-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-string-loc.rs [new file with mode: 0644]