diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-06-28 11:44:04 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:32 +0100 |
commit | 33db2ab974139b01a00bcda11eeb2c9d322e6b55 (patch) | |
tree | f2b7648038674a133292f08a1ef21cdc5fda4944 /gcc | |
parent | ac88cb00f73e7d3d3dbeb210b7e9e9d129b69952 (diff) | |
download | gcc-33db2ab974139b01a00bcda11eeb2c9d322e6b55.zip gcc-33db2ab974139b01a00bcda11eeb2c9d322e6b55.tar.gz gcc-33db2ab974139b01a00bcda11eeb2c9d322e6b55.tar.bz2 |
gccrs: 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 <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast-collector.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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 (); |