From patchwork Wed Apr 5 14:03:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 79668 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp346867vqo; Wed, 5 Apr 2023 07:23:44 -0700 (PDT) X-Google-Smtp-Source: AKy350YKKWd59SDGZw6NrQlkqWWJxoP1aTbhaZqK3nit8TuQZWkvcd0pOZvOcTrBmrqfkKX2fldk X-Received: by 2002:aa7:cd62:0:b0:4fd:29a1:6a58 with SMTP id ca2-20020aa7cd62000000b004fd29a16a58mr2190818edb.19.1680704624132; Wed, 05 Apr 2023 07:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680704624; cv=none; d=google.com; s=arc-20160816; b=uPWLai+iVUVuVmNVEwXYgoQ2f0SogFjd6/Qs6MryEZRgJEd/ffeF2lUOgJqG2ySzEZ 9Solu0bCGDk4RgQAhzfPDt77s4V8fRHs+vV1wN9GBJP3B4bwe5ta0B1UOSoLH43hzQLW fmiDBeNqGwwcBp0de30IOIfxdlH3HrSoJYqlJKQ9NpiV5REAVp4tyEEogV/Ju+ImP8Dg pwa/70pzdbNLOfNDaWsqujlLtGye/Qo3cFvuCXYPTXCq4GnJi86bJTPo78lfuv19EjZj tSTri9RLOjQYmSLGo6ObSHUThO6ABDKTdgLby1RoqEKSGRGdSSEzHscxvS7x9dgwhLbh U4dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dmarc-filter :delivered-to; bh=83qDQLIx+/pit3LfqseKTngaMoyJ6cGYBuwK0YmyyI0=; b=0JUDIfkSXKIRgK9y2bfyxMYDksqgwjYBtEDub1EjhmkHXD6rD45nFcI1cEjxJcOkyR nqJhYR3sLeYD+BgHGA2Gzo5+wTam1Yispo4qrvYkg297c/ur7FFkPmBqHxBFlhOWqJVU l+eC95RsdPgGlFz7gbwrPSxFqfieUEg9ZL8vrr0BEyVsYUlyHobW8ovlbcHi7Z+qTIPe dpMUDKRKqbqwB0tAtiHtu9NxMsYOKppFc+2fCbRXFdJFWtm7phxuAYNHnLMNcPDGfpUV oqJajq2ejhOr5BG5hVaOvqa0WnCHxS2o5ADq5IOc7e6ja0TgjcYP7K/W79wNmWh6HxlW pWvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=Tr4VSHfF; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id w14-20020aa7d28e000000b005004ce1b26fsi3109117edq.593.2023.04.05.07.23.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 07:23:44 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=Tr4VSHfF; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 36B9E385085E for ; Wed, 5 Apr 2023 14:10:52 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id B2E433853544 for ; Wed, 5 Apr 2023 14:05:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B2E433853544 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wm1-x331.google.com with SMTP id n10-20020a05600c4f8a00b003ee93d2c914so23481955wmq.2 for ; Wed, 05 Apr 2023 07:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1680703543; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=83qDQLIx+/pit3LfqseKTngaMoyJ6cGYBuwK0YmyyI0=; b=Tr4VSHfFPBsZiYP5B0c/kU08HY5sBnAtiJvHoxl1hpUCeom/3Sq2jFnugHYJ8NGEG7 jDjdPNrquc7TE4UcMyGyh6iju9Jy+I9soZrEuZDvPwS+aoOHpwK8Z/MSJ3zEgcT5Ze3K ctKMslAAmxFjmvySG6jJ+5VzOaQoCdH99S0TSjsDNOHeqcdjMGYkmgC+F8qcGUn/rVD4 SW7/DCYwVf7PLutz9KeXpk1FHvPbILTKUB/g4txqYCBtjIfr+q3P1aE1BRv0pobQdAt0 jVc9YeC/0X67Gz8rOXMKZyFiXmXq8NKFXr0XhxgPaOdHPN4pY0okaJA3HPm1+8W/RO+O 8iFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680703543; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=83qDQLIx+/pit3LfqseKTngaMoyJ6cGYBuwK0YmyyI0=; b=kQPNNKPdXYGeLMOgCANGp9Wp6WArwXGWzmAGBYoN116jUp15QG/kEzEcZCOOzWiXBF qKhkEE0+U3+SljGg8qxcmBsuluJHrcT0NwY1OETl5a4Hnxt03gytg7AL9qGULe65pHin T1ExGKPRI5rHuXVfz1mg+3UZXKIFUbi6sbCpPKVS9XzSFONykicKVF+rHCiMEcUifgaT ZJLKijbfhM9sZGl1iViXt1MwbWNyiN5X5bcqtYcBpPJiWUGdAcPXy9KREKXT28Sd55Ua pikxHj1gYBF85sJnP/MIJc4R9umQehvmJpGmKof9FS9IoCqlq8Ednyqq6ulO2Jx/xjdn OI+w== X-Gm-Message-State: AAQBX9eGM79g6KN9JqbWvlTsvjOjluWeYdcr2WHvoEVTUKlNz+5yxT/n Ippj8sRRfJ/UJNTZvI4GwnpSn8Nin2lAZym1KA== X-Received: by 2002:a05:600c:20d:b0:3ea:f75d:4626 with SMTP id 13-20020a05600c020d00b003eaf75d4626mr4796818wmi.38.1680703543271; Wed, 05 Apr 2023 07:05:43 -0700 (PDT) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id ay8-20020a05600c1e0800b003edddae1068sm2330150wmb.9.2023.04.05.07.05.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 07:05:42 -0700 (PDT) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Abdul Rafey Subject: [committed 22/88] gccrs: fixed indentations in AST pretty expanded dump of trait Date: Wed, 5 Apr 2023 16:03:06 +0200 Message-Id: <20230405140411.3016563-23-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230405140411.3016563-1-arthur.cohen@embecosm.com> References: <20230405140411.3016563-1-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762346531831774646?= X-GMAIL-MSGID: =?utf-8?q?1762346531831774646?= From: Abdul Rafey gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): removed extra indentations in trait ast dump Signed-off-by: Abdul Rafey --- 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 77e04b972dc..58eb35ad1db 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 () << '(';