diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-09-27 15:49:59 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-09-28 11:54:59 +0200 |
commit | 960d9d289e47ecad67a32f6cf5ace0c11ab84191 (patch) | |
tree | 411e9ea803fcfbc76a8da6fc4469fc77a558f05d | |
parent | 9b1ba11b0b2f873b85dfc7643fe778e974e874b8 (diff) | |
download | gcc-960d9d289e47ecad67a32f6cf5ace0c11ab84191.zip gcc-960d9d289e47ecad67a32f6cf5ace0c11ab84191.tar.gz gcc-960d9d289e47ecad67a32f6cf5ace0c11ab84191.tar.bz2 |
visibility: Rename get_public_vis_type -> get_vis_type
-rw-r--r-- | gcc/rust/ast/rust-item.h | 2 | ||||
-rw-r--r-- | 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 4987674..20f1b93 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 0bec8b0..fa3a83d 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); |