From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id AAF023853822 for ; Wed, 5 Apr 2023 14:05:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AAF023853822 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-x335.google.com with SMTP id v14-20020a05600c470e00b003f06520825fso1157726wmo.0 for ; Wed, 05 Apr 2023 07:05:43 -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=fQ9oOOiNTeyYp+V9w7HzJhnUzv0gH+EMHExgrmQQVBUt+enllE/HO5LRuhllMGT9wb 4pqZFpNvVJxGuOHwMaKfdAs+aQ2b0uZ8TCLzgqp7hZsiQchnC0Zkvmn9fQbZEvPdf/RV Anz3oHUJeAMi+4FBYD5y7VIm4b6q4FiFedV36hRuWty9562T1bd+6F/Q2cHpO73gGGWT c+ulz5DRPO30+2naPHoOiG8ncIIT8VysaK6Zgzk+V8sfAzQQZ3v4vsxinFDFiBbIAyGa kuZoU+jmJmqO38qOrsK5GUtTsHhUJ6ggXBJ6klkA4lDmVERII1JA/RLRfvc/+1R8vWav o7Dg== X-Gm-Message-State: AAQBX9eJxVv7eGMhP0Lz6m64Rd20OLZJgzIk5gxvlE7eSdWIOCrhrYPp nar01N0PZj7hHckqjU60SgHk X-Google-Smtp-Source: AKy350Z7iKGqU2fcX3FmCNepQ8zYdggFcEUlaRRvxL0QmYvJu9+YOzMcrOZnM3gXDnJQGJhNXwq7SQ== 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> Reply-To: arthur.cohen@embecosm.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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 () << '('; -- 2.40.0