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: 1765441 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=embecosm.com header.i=@embecosm.com header.a=rsa-sha256 header.s=google header.b=Tr4VSHfF; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Ps65Z05Ctz1yY8 for ; Thu, 6 Apr 2023 00:12:18 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 59D03389A89F for ; Wed, 5 Apr 2023 14:10:39 +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-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> 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" 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 () << '(';