gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc (Dump::visit): Dump items in modules properly.
void
Dump::visit (Module &module)
-{}
+{
+ indentation.increment ();
+
+ stream << indentation;
+ emit_visibility (module.get_visibility ());
+ stream << "mod" << module.get_name () << " {\n";
+
+ for (auto &item : module.get_items ())
+ {
+ stream << indentation;
+ item->accept_vis (*this);
+ stream << '\n';
+ }
+
+ indentation.decrement ();
+ stream << indentation << "}\n";
+}
void
Dump::visit (ExternCrate &crate)