From b2c44f0066adabc51103f03cd96a7f02efc4214d Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Mon, 17 Apr 2023 18:27:24 +0200 Subject: ast: Fix scope separator in tokenstreams 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 --- gcc/rust/ast/rust-ast-tokenstream.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/rust/ast/rust-ast-tokenstream.cc b/gcc/rust/ast/rust-ast-tokenstream.cc index 92654dc..bd0b6e4 100644 --- a/gcc/rust/ast/rust-ast-tokenstream.cc +++ b/gcc/rust/ast/rust-ast-tokenstream.cc @@ -771,11 +771,11 @@ TokenStream::visit (QualifiedPathInType &path) { 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); } } -- cgit v1.1