diff options
author | Jakub Dupak <dev@jakubdupak.com> | 2022-11-16 14:03:07 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-02-21 12:36:50 +0100 |
commit | 0e44abb1b5095e00662c6c4980a1339b590449e0 (patch) | |
tree | 8672c4c239a500effb378bd1fc43f58765e516f6 | |
parent | ce13edd879da8b0b65a32d0cd21a60eaa3052ecd (diff) | |
download | gcc-0e44abb1b5095e00662c6c4980a1339b590449e0.zip gcc-0e44abb1b5095e00662c6c4980a1339b590449e0.tar.gz gcc-0e44abb1b5095e00662c6c4980a1339b590449e0.tar.bz2 |
gccrs: ast: Dump remove /* stmp */ comment to not clutter the dump
gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc (Dump::visit): Remove extraneous string when
dumping statements.
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 477805f..9ec847c 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -848,7 +848,7 @@ Dump::visit (BlockExpr &expr) stream << "{\n"; indentation.increment (); - visit_items_as_lines (expr.get_statements (), "; /* stmt */"); + visit_items_as_lines (expr.get_statements (), ";"); if (expr.has_tail_expr ()) visit_as_line (expr.get_tail_expr (), " /* tail expr */\n"); @@ -1205,7 +1205,6 @@ Dump::visit (TypeAlias &type_alias) visit (type_alias.get_where_clause ()); stream << " = "; visit (type_alias.get_type_aliased ()); - stream << ";\n"; } void |