public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] visibility: Rename get_public_vis_type -> get_vis_type
@ 2022-10-06 20:05 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-10-06 20:05 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:960d9d289e47ecad67a32f6cf5ace0c11ab84191
commit 960d9d289e47ecad67a32f6cf5ace0c11ab84191
Author: Arthur Cohen <arthur.cohen@embecosm.com>
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-06 20:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-06 20:05 [gcc/devel/rust/master] visibility: Rename get_public_vis_type -> get_vis_type Thomas Schwinge
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).