[gcc r14-7482] gccrs: lex: Fix lifetime string representation
Arthur Cohen
cohenarthur@gcc.gnu.org
Tue Jan 16 17:37:43 GMT 2024
https://gcc.gnu.org/g:e5183f0e4a0cb2ab5ad0b6008c1d09aca303b246
commit r14-7482-ge5183f0e4a0cb2ab5ad0b6008c1d09aca303b246
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date: Mon Apr 17 15:59:03 2023 +0200
gccrs: lex: Fix lifetime string representation
Lifetime string representation used two single quotes instead of one.
gcc/rust/ChangeLog:
* lex/rust-token.cc (Token::as_string): Fix lifetime string
representation.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diff:
---
gcc/rust/lex/rust-token.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/rust/lex/rust-token.cc b/gcc/rust/lex/rust-token.cc
index e5397067b8a..8b7cdc0951e 100644
--- a/gcc/rust/lex/rust-token.cc
+++ b/gcc/rust/lex/rust-token.cc
@@ -148,7 +148,7 @@ Token::as_string () const
case BYTE_CHAR_LITERAL:
return "b'" + get_str () + "'";
case LIFETIME:
- return "''" + get_str ();
+ return "'" + get_str ();
case INT_LITERAL:
if (get_type_hint () == CORETYPE_UNKNOWN)
return get_str ();
More information about the Gcc-cvs
mailing list