From patchwork Tue Feb 21 12:00:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 59957 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1825031wrn; Tue, 21 Feb 2023 04:08:11 -0800 (PST) X-Google-Smtp-Source: AK7set8uMpJ6FK2hvbOGtMNeUpDHKpmATKVv8rCOjF/p8ikjVOvMCKjUJkJagF3LR1MUGkzcltb7 X-Received: by 2002:aa7:cd77:0:b0:4ab:f51:85da with SMTP id ca23-20020aa7cd77000000b004ab0f5185damr5245763edb.3.1676981290939; Tue, 21 Feb 2023 04:08:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676981290; cv=none; d=google.com; s=arc-20160816; b=XNdnYft4uTq8Von3z5BmoYDFqf3tOxNnG3XcjZHfR9rTRr4Ep9uVA7X8jv2OZVlZTc 2b4YCL6YsYl3HPki17FA+rCbsKW69M3dGJHlY+M0zvkIKtA1pbp8EVNmU1Mbqgy8T/ku Eh6ASgpui/fZJh+vWhg2/meZezogwuJB5JUr4oh364SZ+N0F6ma8FWWw041f8lFKekFS xWzTRP1lfl/z8JFKrPcr3DF22OjhqYvdIgkP4xcsatNxFIK4oDjfV5e6PjYvPNBkSYSA JRj3M0BBNwUyE4EzukkEkyJs0EmprXH0a50A5FamEX49EAvrGvGUEuznSrFfHoOnoQrL cTyA== 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=9m3/Zgartqb6Ny/0Roc5igEZF2/c2FErqZu5Hq7YMys=; b=ayxvYJxuSapxsznaZnGo/R7itH1Zmg52fjp3hbp7dxPRtajPukrwOAf3eCOMHD/vUi pKsxjkKaYH4og/gfj0NzAv9ONgyQ5xx4v+uULbiBL5b3ULVyrJc1QAnt6SZopWMB+57q 7SLXtMSMoGxOcBxp3ko1VlZcIxsQdyU4uJFdp4HNfGS5V+9Z5EY3KIQwG0fvQ3yl1F4u VqUybmF9UhcCm1qFdFoyPWD41mbolW+OJU0kHTGBx+Orz/DA9cwe3beLqEoWzWlX0ysM PLF6O03E1odiTvOxeV7vo1FCZReImYIkzodMSgMeh/yNTsXHobJhFCFA/458ODd4n+ZZ AMgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=ZlkyxRUT; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id w19-20020aa7da53000000b004ad0463a5edsi18888361eds.553.2023.02.21.04.08.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:08:10 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=ZlkyxRUT; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 CFCFC3896C0D for ; Tue, 21 Feb 2023 12:04:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id CBEA0384F4A2 for ; Tue, 21 Feb 2023 12:03:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CBEA0384F4A2 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-wr1-x433.google.com with SMTP id p8so4289057wrt.12 for ; Tue, 21 Feb 2023 04:03:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; 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=9m3/Zgartqb6Ny/0Roc5igEZF2/c2FErqZu5Hq7YMys=; b=ZlkyxRUT/OvB82l3waBcP8fZ3x46ZeVT+3wJN5ne+PBddjAov+EQnB9Z8uFYNIDI/3 x1D3kQeaWpK56psr7iwAGOUaUDNPXqEM20POANzWooG5IZuGNTjATZdVjOOemhsZlE8x /8xrMcgq1GjQUpwbZCo5dUB3iZQUrrV5k+JAgsW2H0DLKSWHWMunTJ9XqZARjjaMqNk+ gMUnvA/Iu66+vNo7kbrPfvkZzW6TWWy6Ae8M2h+1nPgeQas88Z5n5gd4qGXEg/NDFup/ vMMt5ldMKigDWcLs+BHouLh5dbVV97Eo2LchQWk9pgBVRF7ddDGVh8Sp3H/sPF2HGY21 MGjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=9m3/Zgartqb6Ny/0Roc5igEZF2/c2FErqZu5Hq7YMys=; b=jnH3fQw/9XtaYifqsXih+VyN7nH4VKVq3lHcbzrR7w/rjSN7TSnN1jnkG94rpoxkSh K18AdFnfuBAS1hPCpLPPemEq8UFUr3aNOwBMehQx+Dq4Wswj903SK1nUEWmoeXSXsOXl r5bma8xxhfnz1eDMhqRnNbBe9xBVoPCnIL8Fuyh7fFfpmyfz9pMddf3y02sjPqtZYhf9 U/JSxk2ic4E1DzLWQBQ+CMsUaIJcDmboNaIaiKZu9yO3ZuG3S/Z5V72yu+DAuXXJngm0 aY5ZEppbRViJcEObI6s4wIOVKe+nqsyWYUldFfYpJ65OEJK4LAmP4bCmj8ArpIV4+ik7 UTqA== X-Gm-Message-State: AO0yUKU2JFng5TkZD5fROcoliR69gwrqyAIAGDaMllD63hAB7x9Hbttc v4l0/GfwS9qXqgqpmssguMNnYmzNlII0PM4CZw== X-Received: by 2002:adf:dd86:0:b0:2c5:a370:df65 with SMTP id x6-20020adfdd86000000b002c5a370df65mr3965670wrl.10.1676981005931; Tue, 21 Feb 2023 04:03:25 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id c15-20020adffb4f000000b002c55b0e6ef1sm5013811wrs.4.2023.02.21.04.03.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:03:25 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Arthur Cohen Subject: [committed 002/103] gccrs: visibility: Rename get_public_vis_type -> get_vis_type Date: Tue, 21 Feb 2023 13:00:52 +0100 Message-Id: <20230221120230.596966-3-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230221120230.596966-1-arthur.cohen@embecosm.com> References: <20230221120230.596966-1-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.3 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?1758442333716931313?= X-GMAIL-MSGID: =?utf-8?q?1758442333716931313?= From: Arthur Cohen gcc/rust/ChangeLog: * ast/rust-item.h: Rename get_public_vis_type. * hir/rust-ast-lower.cc (translate_visibility): Use new name. --- gcc/rust/ast/rust-item.h | 2 +- gcc/rust/hir/rust-ast-lower.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/rust/ast/rust-item.h b/gcc/rust/ast/rust-item.h index 93497a391ce..d66dd615319 100644 --- a/gcc/rust/ast/rust-item.h +++ b/gcc/rust/ast/rust-item.h @@ -634,7 +634,7 @@ public: : vis_type (vis_type), in_path (std::move (in_path)) {} - VisType get_public_vis_type () const { return vis_type; } + VisType get_vis_type () const { return vis_type; } // Returns whether visibility is in an error state. bool is_error () const diff --git a/gcc/rust/hir/rust-ast-lower.cc b/gcc/rust/hir/rust-ast-lower.cc index d88c343f9ef..4f1bfd1f0c1 100644 --- a/gcc/rust/hir/rust-ast-lower.cc +++ b/gcc/rust/hir/rust-ast-lower.cc @@ -36,7 +36,7 @@ translate_visibility (const AST::Visibility &vis) if (vis.is_error ()) return Visibility::create_error (); - switch (vis.get_public_vis_type ()) + switch (vis.get_vis_type ()) { case AST::Visibility::PUB: return Visibility (Visibility::VisType::PUBLIC);