diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-06-28 15:32:23 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-07-07 13:46:54 +0000 |
commit | 835f9300bd9b2ab78330694a92bfebbc70d37935 (patch) | |
tree | 3e18968a247be858a79031659627ea2c89f4c986 /gcc | |
parent | eb8f51036aca40ce820f3a778e3187b4d14518dc (diff) | |
download | gcc-835f9300bd9b2ab78330694a92bfebbc70d37935.zip gcc-835f9300bd9b2ab78330694a92bfebbc70d37935.tar.gz gcc-835f9300bd9b2ab78330694a92bfebbc70d37935.tar.bz2 |
collector: Fix method qualifier output
Method qualifiers did not output correctly (no unsafe in the output).
gcc/rust/ChangeLog:
* ast/rust-ast-collector.cc (TokenCollector::visit): Fix method
qualifier output.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast-collector.cc b/gcc/rust/ast/rust-ast-collector.cc index 7730746..6e2494e 100644 --- a/gcc/rust/ast/rust-ast-collector.cc +++ b/gcc/rust/ast/rust-ast-collector.cc @@ -1604,6 +1604,9 @@ TokenCollector::visit (Method &method) { visit (method.get_visibility ()); auto method_name = method.get_method_name ().as_string (); + auto qualifiers = method.get_qualifiers (); + visit (qualifiers); + push (Rust::Token::make (FN_TOK, method.get_locus ())); push (Rust::Token::make_identifier (Location (), std::move (method_name))); push (Rust::Token::make (LEFT_PAREN, Location ())); |