projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31150a6
)
gccrs: dump: Fix module dumping
author
Arthur Cohen
<arthur.cohen@embecosm.com>
Fri, 14 Oct 2022 14:55:47 +0000
(16:55 +0200)
committer
Arthur Cohen
<arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:35 +0000
(12:36 +0100)
gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc (Dump::visit): Fix formatting when dumping modules.
gcc/rust/ast/rust-ast-dump.cc
patch
|
blob
|
history
diff --git
a/gcc/rust/ast/rust-ast-dump.cc
b/gcc/rust/ast/rust-ast-dump.cc
index
653c1d9
..
1e7a235
100644
(file)
--- a/
gcc/rust/ast/rust-ast-dump.cc
+++ b/
gcc/rust/ast/rust-ast-dump.cc
@@
-810,11
+810,10
@@
Dump::visit (Method &method)
void
Dump::visit (Module &module)
{
- indentation.increment ();
-
- stream << indentation;
emit_visibility (module.get_visibility ());
- stream << "mod" << module.get_name () << " {\n";
+ stream << "mod " << module.get_name () << " {\n";
+
+ indentation.increment ();
for (auto &item : module.get_items ())
{
@@
-824,6
+823,7
@@
Dump::visit (Module &module)
}
indentation.decrement ();
+
stream << indentation << "}\n";
}