mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 20:01:22 -05:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user