Qualified types had a simple colon output instead of full scope
resolution tokens in QualifiedPathInTypes.
gcc/rust/ChangeLog:
* ast/rust-ast-tokenstream.cc (TokenStream::visit): Fix scope
resolution token output.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
{
visit (path.get_qualified_path_type ());
- tokens.push_back (Rust::Token::make (COLON, Location ()));
+ tokens.push_back (Rust::Token::make (SCOPE_RESOLUTION, Location ()));
visit (path.get_associated_segment ());
for (auto &segment : path.get_segments ())
{
- tokens.push_back (Rust::Token::make (COLON, Location ()));
+ tokens.push_back (Rust::Token::make (SCOPE_RESOLUTION, Location ()));
visit (segment);
}
}