]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Use keyword const values instead of raw values
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 8 Nov 2023 14:22:33 +0000 (15:22 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:13:13 +0000 (19:13 +0100)
commitb52651427be060094b2b1955d4425ddee73ef855
tree3e1ffedd19ac0b567b5ee8ad8c1d5cd056306456
parente50b0969b8eb69afd5432fc4aee1434974275067
gccrs: Use keyword const values instead of raw values

Change the keyword values from a raw string value to their matching const
value in utils.

gcc/rust/ChangeLog:

* lex/rust-lex.cc (Lexer::parse_raw_identifier): Use const value.
* parse/rust-parse-impl.h (Parser::parse_simple_path_segment):
Likewise.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/lex/rust-lex.cc
gcc/rust/parse/rust-parse-impl.h