From 90160c17bb25cec1c1676b4ea818a9561b0e8e6d Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Wed, 28 Jun 2023 11:44:04 +0200 Subject: collector: Fix output for function qualifiers Function qualifiers did not output properly. gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Output function qualifiers after visibility. Signed-off-by: Pierre-Emmanuel Patry --- gcc/rust/ast/rust-ast-collector.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc') diff --git a/gcc/rust/ast/rust-ast-collector.cc b/gcc/rust/ast/rust-ast-collector.cc index 04c0397..99d8973 100644 --- a/gcc/rust/ast/rust-ast-collector.cc +++ b/gcc/rust/ast/rust-ast-collector.cc @@ -1768,6 +1768,8 @@ TokenCollector::visit (Function &function) visit_items_as_lines (function.get_outer_attrs ()); visit (function.get_visibility ()); + auto qualifiers = function.get_qualifiers (); + visit (qualifiers); push (Rust::Token::make (FN_TOK, function.get_locus ())); auto name = function.get_function_name ().as_string (); -- cgit v1.1