aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/lex/rust-lex.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2022-12-05 02:20:55 +0000
committerPhilip Herron <herron.philip@googlemail.com>2022-12-05 02:20:55 +0000
commita3a755838fd661fcfaf34b794cfd1ac9822126a1 (patch)
tree13599ea4abf0a3fea406a8272ef6cfe9da4a5bfc /gcc/rust/lex/rust-lex.cc
parent9666f2b169b5192b5c827d605cc80e6987e1aac5 (diff)
downloadgcc-a3a755838fd661fcfaf34b794cfd1ac9822126a1.zip
gcc-a3a755838fd661fcfaf34b794cfd1ac9822126a1.tar.gz
gcc-a3a755838fd661fcfaf34b794cfd1ac9822126a1.tar.bz2
Cleanup unused parameters to fix the bootstrap build
Diffstat (limited to 'gcc/rust/lex/rust-lex.cc')
-rw-r--r--gcc/rust/lex/rust-lex.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rust/lex/rust-lex.cc b/gcc/rust/lex/rust-lex.cc
index 8028c1b..ea17ecc 100644
--- a/gcc/rust/lex/rust-lex.cc
+++ b/gcc/rust/lex/rust-lex.cc
@@ -1364,7 +1364,7 @@ Lexer::parse_escape (char opening_char)
/* Parses an escape (or string continue) in a string or character. Supports
* unicode escapes. */
std::tuple<Codepoint, int, bool>
-Lexer::parse_utf8_escape (char opening_char)
+Lexer::parse_utf8_escape ()
{
Codepoint output_char;
int additional_length_offset = 0;
@@ -1964,7 +1964,7 @@ Lexer::parse_string (Location loc)
if (current_char32.value == '\\')
{
// parse escape
- auto utf8_escape_pair = parse_utf8_escape ('\'');
+ auto utf8_escape_pair = parse_utf8_escape ();
current_char32 = std::get<0> (utf8_escape_pair);
if (current_char32 == Codepoint (0) && std::get<2> (utf8_escape_pair))
@@ -2365,7 +2365,7 @@ Lexer::parse_char_or_lifetime (Location loc)
if (current_char32.value == '\\')
{
// parse escape
- auto utf8_escape_pair = parse_utf8_escape ('\'');
+ auto utf8_escape_pair = parse_utf8_escape ();
current_char32 = std::get<0> (utf8_escape_pair);
length += std::get<1> (utf8_escape_pair);