aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-09-27 15:50:39 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2023-02-21 12:36:35 +0100
commit421494b5929fe362aa5ef99a444c8b9b700a6563 (patch)
tree8e7a20e6f024d80b2ff00ae39d8daed68c3d4b20
parent8f0b1526e04c80fd3cc30f692f482df14939088b (diff)
downloadgcc-421494b5929fe362aa5ef99a444c8b9b700a6563.zip
gcc-421494b5929fe362aa5ef99a444c8b9b700a6563.tar.gz
gcc-421494b5929fe362aa5ef99a444c8b9b700a6563.tar.bz2
gccrs: dump: Emit visibility when dumping items
gcc/rust/ChangeLog: * ast/rust-ast-dump.cc: Emit visibility when dumping items.
-rw-r--r--gcc/rust/ast/rust-ast-dump.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc
index fdcd975..b7557bd 100644
--- a/gcc/rust/ast/rust-ast-dump.cc
+++ b/gcc/rust/ast/rust-ast-dump.cc
@@ -835,6 +835,7 @@ void
Dump::visit (Function &function)
{
emit_visibility (function.get_visibility ());
+
stream << "fn " << function.get_function_name ();
if (function.has_generics ())
emit_generic_params (function.get_generic_params ());