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>
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;