diff options
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
-rw-r--r-- | gcc/rust/backend/rust-compile-resolve-path.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/rust/backend/rust-compile-resolve-path.cc b/gcc/rust/backend/rust-compile-resolve-path.cc index 90c4eeb..cb1cfcf 100644 --- a/gcc/rust/backend/rust-compile-resolve-path.cc +++ b/gcc/rust/backend/rust-compile-resolve-path.cc @@ -91,7 +91,7 @@ ResolvePathRef::visit (HIR::PathInExpression &expr) else { HirId parent_impl_id = UNKNOWN_HIRID; - HIR::InherentImplItem *resolved_item + HIR::ImplItem *resolved_item = ctx->get_mappings ()->lookup_hir_implitem ( expr.get_mappings ().get_crate_num (), ref, &parent_impl_id); if (resolved_item != nullptr) @@ -100,8 +100,7 @@ ResolvePathRef::visit (HIR::PathInExpression &expr) HIR::Item *impl_ref = ctx->get_mappings ()->lookup_hir_item ( expr.get_mappings ().get_crate_num (), parent_impl_id); rust_assert (impl_ref != nullptr); - HIR::InherentImpl *impl - = static_cast<HIR::InherentImpl *> (impl_ref); + HIR::ImplBlock *impl = static_cast<HIR::ImplBlock *> (impl_ref); TyTy::BaseType *self = nullptr; bool ok = ctx->get_tyctx ()->lookup_type ( |