public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] fixed indentations in AST pretty expanded dump of trait gcc/rust/ChangeLog:
@ 2023-02-11 15:30 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-02-11 15:30 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:c02a518fab792e5a8656cc7dfb0b88bb0de8a00f
commit c02a518fab792e5a8656cc7dfb0b88bb0de8a00f
Author: Abdul Rafey <abdulrafeyq@gmail.com>
Date: Wed Feb 1 11:02:16 2023 +0530
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>
Diff:
---
gcc/rust/ast/rust-ast-dump.cc | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc
index 131e23ea180..7a2fdc5b9b6 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 () << '(';
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-11 15:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-11 15:30 [gcc/devel/rust/master] fixed indentations in AST pretty expanded dump of trait gcc/rust/ChangeLog: Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).