diff options
author | Abdul Rafey <abdulrafeyq@gmail.com> | 2023-02-01 11:02:16 +0530 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-04-06 10:47:18 +0200 |
commit | 8e7e682a9f86ab7c9906f2dc287da8486e22db10 (patch) | |
tree | 6fc377800aa8b6b144508b3bcdabb892c3442338 /gcc/rust/ast/rust-ast-dump.cc | |
parent | 760f529d8138b8b6afb6f17274af194d6fd5de12 (diff) | |
download | gcc-8e7e682a9f86ab7c9906f2dc287da8486e22db10.zip gcc-8e7e682a9f86ab7c9906f2dc287da8486e22db10.tar.gz gcc-8e7e682a9f86ab7c9906f2dc287da8486e22db10.tar.bz2 |
gccrs: fixed indentations in AST pretty expanded dump of trait
gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc (Dump::visit): removed extra indentations in trait ast dump
Signed-off-by: Abdul Rafey <abdulrafeyq@gmail.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast-dump.cc')
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 77e04b9..58eb35a 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1072,8 +1072,6 @@ Dump::visit (TypeBoundWhereClauseItem &item) void Dump::visit (Method &method) { - // FIXME: Do we really need to dump the indentation here? - stream << indentation; visit (method.get_visibility ()); stream << "fn " << method.get_method_name () << '('; @@ -1326,7 +1324,7 @@ void Dump::visit (TraitItemFunc &item) { auto func = item.get_trait_function_decl (); - stream << indentation << "fn " << func.get_identifier () << '('; + stream << "fn " << func.get_identifier () << '('; visit_items_joined_by_separator (func.get_function_params ()); @@ -1340,9 +1338,6 @@ Dump::visit (TraitItemMethod &item) { auto method = item.get_trait_method_decl (); - // FIXME: Do we really need to dump the indentation here? - stream << indentation; - // FIXME: Can we have visibility here? // emit_visibility (method.get_visibility ()); stream << "fn " << method.get_identifier () << '('; |