diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-04-04 16:19:51 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:28:44 +0100 |
commit | 08ac705b21542b064ebd95b71405281d14192fd2 (patch) | |
tree | d0d36d9e1ece534ad13e66c3ec3419e4bfe25cff /gcc | |
parent | 21c46e84e8b461a2d80b6fb6c2a006a8552a52a6 (diff) | |
download | gcc-08ac705b21542b064ebd95b71405281d14192fd2.zip gcc-08ac705b21542b064ebd95b71405281d14192fd2.tar.gz gcc-08ac705b21542b064ebd95b71405281d14192fd2.tar.bz2 |
gccrs: 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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast-tokenstream.cc | 2 |
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; |