aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-04-04 16:19:51 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-04-05 08:09:09 +0000
commitd94116ad6ac41343923e66f616facd9352a9af6a (patch)
tree4fe44bd89d81f47e184286aec232bfa7b0b9d804
parent4331f52f62aa9208c3be4db12bbae29d669ec77b (diff)
downloadgcc-d94116ad6ac41343923e66f616facd9352a9af6a.zip
gcc-d94116ad6ac41343923e66f616facd9352a9af6a.tar.gz
gcc-d94116ad6ac41343923e66f616facd9352a9af6a.tar.bz2
ast: Change visibility in token type
Change the token type from a custom identifier to the reserved token keyword "in". gcc/rust/ChangeLog: * ast/rust-ast-tokenstream.cc (TokenStream::visit): Change token type. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r--gcc/rust/ast/rust-ast-tokenstream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast-tokenstream.cc b/gcc/rust/ast/rust-ast-tokenstream.cc
index 0db1e2c..a380fec 100644
--- a/gcc/rust/ast/rust-ast-tokenstream.cc
+++ b/gcc/rust/ast/rust-ast-tokenstream.cc
@@ -248,7 +248,7 @@ TokenStream::visit (Visibility &vis)
case Visibility::PUB_IN_PATH:
tokens.push_back (Rust::Token::make (PUB, vis.get_locus ()));
tokens.push_back (Rust::Token::make (LEFT_PAREN, Location ()));
- tokens.push_back (Rust::Token::make_identifier (Location (), "in"));
+ tokens.push_back (Rust::Token::make (IN, Location ()));
visit (vis.get_path ());
tokens.push_back (Rust::Token::make (RIGHT_PAREN, Location ()));
break;