From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 7BB2A3858022; Sat, 11 Feb 2023 15:30:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7BB2A3858022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676129442; bh=Y0dIhk1GwSAgv5jrwcNMP6eGtHOPujzGo7xQIxlOKss=; h=From:To:Subject:Date:From; b=iXgNBdAsDWhoIVxDbKAedbMWT6DaU/wPQW0Smy8P+nWqyXtz6m384MVJno4IuGXo9 v5WLdKRGix6g2vYlq2d2hnmInZwWxzJ9Y53vYVfpAJAXEYr6V0fI1dUrYM7T/6HYVZ wo+tndjDdSBo7SLD+xOTSFA5RIkepYeGWephla6M= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] fixed indentations in AST pretty expanded dump of trait gcc/rust/ChangeLog: X-Act-Checkin: gcc X-Git-Author: Abdul Rafey X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: d17212591af78ba9894d1ca7aa457ec2340ca461 X-Git-Newrev: c02a518fab792e5a8656cc7dfb0b88bb0de8a00f Message-Id: <20230211153042.7BB2A3858022@sourceware.org> Date: Sat, 11 Feb 2023 15:30:42 +0000 (GMT) List-Id: https://gcc.gnu.org/g:c02a518fab792e5a8656cc7dfb0b88bb0de8a00f commit c02a518fab792e5a8656cc7dfb0b88bb0de8a00f Author: Abdul Rafey 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 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 () << '(';