public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Arthur Cohen <cohenarthur@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-6155] gccrs: visibility: Rename get_public_vis_type -> get_vis_type
Date: Tue, 21 Feb 2023 11:55:22 +0000 (GMT)	[thread overview]
Message-ID: <20230221115522.B55893858C39@sourceware.org> (raw)

https://gcc.gnu.org/g:7080854461891d61bb99cb5e69cc5270409c6d71

commit r13-6155-g7080854461891d61bb99cb5e69cc5270409c6d71
Author: Arthur Cohen <arthur.cohen@embecosm.com>
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);

                 reply	other threads:[~2023-02-21 11:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230221115522.B55893858C39@sourceware.org \
    --to=cohenarthur@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).