aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-09-27 15:49:59 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2023-02-21 12:36:31 +0100
commit7080854461891d61bb99cb5e69cc5270409c6d71 (patch)
tree85a23b7b78cff8164730ef9e85ea2d3170b5abed
parent7e7a95880443ebdc763034d4e290651952f48a86 (diff)
downloadgcc-7080854461891d61bb99cb5e69cc5270409c6d71.zip
gcc-7080854461891d61bb99cb5e69cc5270409c6d71.tar.gz
gcc-7080854461891d61bb99cb5e69cc5270409c6d71.tar.bz2
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.
-rw-r--r--gcc/rust/ast/rust-item.h2
-rw-r--r--gcc/rust/hir/rust-ast-lower.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-item.h b/gcc/rust/ast/rust-item.h
index 93497a39..d66dd61 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 d88c343..4f1bfd1 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);