From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 1BE66393C03C; Thu, 6 Oct 2022 20:05:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BE66393C03C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665086728; bh=wMLZHPy0/8iM8wgexUwri9L3TvdONVF2T051Rx9LpPU=; h=From:To:Subject:Date:From; b=kjhLPRzIIeBUIXIn+1mQQ0OJfDoaiGKcsO6tldJGuX77AXDHMS3SeasuNlQM6+3Ze 9SFKiZUGoCjOzQ/ZgXOfFzBd0ms0WmFKOzU6ANtWg82DBitefv2n70V4MqarP+mAef kgJpGj/eODITu4ROwXsCKpSVU5td5ZTHmbPjgwxw= 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] visibility: Rename get_public_vis_type -> get_vis_type X-Act-Checkin: gcc X-Git-Author: Arthur Cohen X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 9b1ba11b0b2f873b85dfc7643fe778e974e874b8 X-Git-Newrev: 960d9d289e47ecad67a32f6cf5ace0c11ab84191 Message-Id: <20221006200528.1BE66393C03C@sourceware.org> Date: Thu, 6 Oct 2022 20:05:28 +0000 (GMT) List-Id: https://gcc.gnu.org/g:960d9d289e47ecad67a32f6cf5ace0c11ab84191 commit 960d9d289e47ecad67a32f6cf5ace0c11ab84191 Author: Arthur Cohen Date: Tue Sep 27 15:49:59 2022 +0200 visibility: Rename get_public_vis_type -> get_vis_type Diff: --- 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 4987674cba1..20f1b93d948 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 0bec8b088af..fa3a83db1db 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);