]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add RAW_STRING_LITERAL
authoransh <anshmalik2002@gmail.com>
Mon, 24 Jun 2024 11:01:53 +0000 (04:01 -0700)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 17 Mar 2025 15:35:50 +0000 (16:35 +0100)
commit908a4f88c6b248f634f723b7530abd5e2fdf1dbd
tree93f3bd73c61452e9cb0752f841cae071fef49e19
parenta9c95b82781062aeb0dcebdbcc21d38c6c185d7a
gccrs: Add RAW_STRING_LITERAL

gcc/rust/ChangeLog:

* ast/rust-ast-collector.cc (TokenCollector::visit):
Handle case for RAW_STRING_LITERAL.
* ast/rust-ast.cc (AttributeParser::parse_meta_item_inner):
Likewise.
(AttributeParser::parse_literal): Likewise.
* ast/rust-ast.h: Likewise.
* hir/rust-ast-lower-base.cc (ASTLoweringBase::lower_literal):
Likewise.
* lex/rust-lex.cc (Lexer::parse_raw_string): Likewise.
* lex/rust-token.cc (Token::as_string): Likewise.
* lex/rust-token.h (enum PrimitiveCoreType): Likewise.
* parse/rust-parse-impl.h (Parser::parse_attr_input): Likewise.
(Parser::parse_literal_expr): Likewise.
(Parser::parse_pattern_no_alt): Likewise.

Signed-off-by: ansh <anshmalik2002@gmail.com>
gcc/rust/ast/rust-ast-collector.cc
gcc/rust/ast/rust-ast.cc
gcc/rust/ast/rust-ast.h
gcc/rust/hir/rust-ast-lower-base.cc
gcc/rust/lex/rust-lex.cc
gcc/rust/lex/rust-token.cc
gcc/rust/lex/rust-token.h
gcc/rust/parse/rust-parse-impl.h