gccrs: ast: Dump bare function type
authorJakub Dupak <dev@jakubdupak.com>
Mon, 7 Nov 2022 16:09:33 +0000 (17:09 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:47 +0000 (12:36 +0100)
commitae1f6b3a96dd8cfae914ab55411b769d245e48f9
tree643004bd2b539eab2ee235e3906bb8bad23bc128
parentee0166fa1b88e2c28a61f8755c0cb192e7fd0b05
gccrs: ast: Dump bare function type

+ Return FunctionQualifiers as ref to work in ast dump

gcc/rust/ChangeLog:

* ast/rust-ast-dump.cc (Dump::visit): Add missing visitor.
* ast/rust-ast-dump.h: Add missing getter declaration.
* ast/rust-ast-full-test.cc (BareFunctionType::as_string): Fix bare function
string representation.
* ast/rust-type.h (class BareFunctionType): Declare said getter.

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
gcc/rust/ast/rust-ast-dump.cc
gcc/rust/ast/rust-ast-dump.h
gcc/rust/ast/rust-ast-full-test.cc
gcc/rust/ast/rust-type.h