From: Pierre-Emmanuel Patry Date: Mon, 17 Apr 2023 16:27:24 +0000 (+0200) Subject: gccrs: ast: Fix scope separator in tokenstreams X-Git-Tag: basepoints/gcc-15~2653 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c353758f7e7152898315b0f9a3329d464fa82a1c;p=thirdparty%2Fgcc.git gccrs: 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 --- diff --git a/gcc/rust/ast/rust-ast-tokenstream.cc b/gcc/rust/ast/rust-ast-tokenstream.cc index 92654dc5a51b..bd0b6e4cd191 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); } }