From d94116ad6ac41343923e66f616facd9352a9af6a Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Tue, 4 Apr 2023 16:19:51 +0200 Subject: 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 --- gcc/rust/ast/rust-ast-tokenstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') 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; -- cgit v1.1