From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7905) id B55893858C39; Tue, 21 Feb 2023 11:55:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B55893858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676980522; bh=PGkXIANgEuQa2bbDl70iV9MSv9i0WokGDYSkZqwrEVA=; h=From:To:Subject:Date:From; b=tKe4pj/eTKfoJhYiLkRkHorh25Tl1jNAI8rdejbRkD6t1F5HEkOf0Kvhja/ETCRO3 z7OUb1svc4SbHWeUop9x+oDpW4sireBe0ISd5GBFunHCvu9fy5CXqx+IoNru8eMQIR sIuTbY80Ihkl/MFGr4NoDSLAvULbrfCwZBjHqEh8= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Arthur Cohen To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6155] gccrs: visibility: Rename get_public_vis_type -> get_vis_type X-Act-Checkin: gcc X-Git-Author: Arthur Cohen X-Git-Refname: refs/heads/master X-Git-Oldrev: 7e7a95880443ebdc763034d4e290651952f48a86 X-Git-Newrev: 7080854461891d61bb99cb5e69cc5270409c6d71 Message-Id: <20230221115522.B55893858C39@sourceware.org> Date: Tue, 21 Feb 2023 11:55:22 +0000 (GMT) List-Id: https://gcc.gnu.org/g:7080854461891d61bb99cb5e69cc5270409c6d71 commit r13-6155-g7080854461891d61bb99cb5e69cc5270409c6d71 Author: Arthur Cohen Date: Tue Sep 27 15:49:59 2022 +0200 gccrs: visibility: Rename get_public_vis_type -> get_vis_type gcc/rust/ChangeLog: * ast/rust-item.h: Rename get_public_vis_type. * hir/rust-ast-lower.cc (translate_visibility): Use new name. 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 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);