aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/privacy/rust-reachability.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/privacy/rust-reachability.cc')
-rw-r--r--gcc/rust/privacy/rust-reachability.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/privacy/rust-reachability.cc b/gcc/rust/privacy/rust-reachability.cc
index bf2480b..b322e29 100644
--- a/gcc/rust/privacy/rust-reachability.cc
+++ b/gcc/rust/privacy/rust-reachability.cc
@@ -48,7 +48,7 @@ ReachabilityVisitor::visit_generic_predicates (
for (const auto &generic : generics)
{
- if (generic->get_kind () == HIR::GenericParam::TYPE)
+ if (generic->get_kind () == HIR::GenericParam::GenericKind::TYPE)
{
TyTy::BaseType *generic_ty = nullptr;
auto ok = ty_ctx.lookup_type (generic->get_mappings ().get_hirid (),