aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-09-27 22:15:41 +0200
committerPhilip Herron <philip.herron@embecosm.com>2021-09-30 12:52:30 +0100
commit31b999c5c783e4132d7c5027c1ead3a9aa8bf1dd (patch)
tree1af416e04967de3572e2129c8db6cd2d0d181734 /gcc/rust/parse
parentfdcad086e134b889ba542fadc1150bb2fcef8aea (diff)
downloadgcc-31b999c5c783e4132d7c5027c1ead3a9aa8bf1dd.zip
gcc-31b999c5c783e4132d7c5027c1ead3a9aa8bf1dd.tar.gz
gcc-31b999c5c783e4132d7c5027c1ead3a9aa8bf1dd.tar.bz2
Remove raw string and raw byte string references from ast and hir
Raw strings and raw byte strings are simply different ways to create string and byte string literals. Only the lexer cares how those literals are constructed and which escapes are used to construct them. The parser and hir simply see strings or byte strings.
Diffstat (limited to 'gcc/rust/parse')
-rw-r--r--gcc/rust/parse/rust-parse-impl.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h
index 8cce933..c2d3720 100644
--- a/gcc/rust/parse/rust-parse-impl.h
+++ b/gcc/rust/parse/rust-parse-impl.h
@@ -7556,8 +7556,6 @@ Parser<ManagedTokenSource>::parse_literal_expr (AST::AttrVec outer_attrs)
literal_value = t->get_str ();
lexer.skip_token ();
break;
- // case RAW_STRING_LITERAL:
- // put here if lexer changes to have these
case BYTE_CHAR_LITERAL:
type = AST::Literal::BYTE;
literal_value = t->get_str ();
@@ -7568,7 +7566,6 @@ Parser<ManagedTokenSource>::parse_literal_expr (AST::AttrVec outer_attrs)
literal_value = t->get_str ();
lexer.skip_token ();
break;
- // case RAW_BYTE_STRING_LITERAL:
case INT_LITERAL:
type = AST::Literal::INT;
literal_value = t->get_str ();