aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-04-17 18:27:24 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-04-17 17:25:51 +0000
commitb2c44f0066adabc51103f03cd96a7f02efc4214d (patch)
tree62cd8e6f646ce5ed30203facb0c6acc4f0977d04 /gcc
parent4f2f07943d639f1635cf3dfd092ad27ca050ba65 (diff)
downloadgcc-b2c44f0066adabc51103f03cd96a7f02efc4214d.zip
gcc-b2c44f0066adabc51103f03cd96a7f02efc4214d.tar.gz
gcc-b2c44f0066adabc51103f03cd96a7f02efc4214d.tar.bz2
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 <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/ast/rust-ast-tokenstream.cc4
1 files changed, 2 insertions, 2 deletions
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);
}
}