]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Improve parsing of raw string literals
authorOwen Avery <powerboat9.gamer@gmail.com>
Wed, 27 Mar 2024 01:10:05 +0000 (21:10 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 1 Aug 2024 14:52:29 +0000 (16:52 +0200)
commit6ea7ffe427c989b857020263483f7622031a58fe
treee3333bbdd8635d5c4bf1d86873038c87b3ea4d61
parentd3acfa7c7e4a7d09be17dfdfd4fb5e60b623667f
gccrs: 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]