aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-06-16 13:23:31 +0100
committerPhilip Herron <philip.herron@embecosm.com>2021-06-16 13:23:31 +0100
commit730a2174b933162c42843af43d85851b85d64144 (patch)
tree25b6519e73c5523dbee8a7b1d894ce9c83434913 /gcc/rust/backend/rust-compile.cc
parent44481c1c2bdf7d160928dde30f48fdc54e75bf38 (diff)
downloadgcc-730a2174b933162c42843af43d85851b85d64144.zip
gcc-730a2174b933162c42843af43d85851b85d64144.tar.gz
gcc-730a2174b933162c42843af43d85851b85d64144.tar.bz2
Refactor HIR::InherentImpl to become HIR::ImplBlock
This folds the abstract Impl class directly into HIR::ImplBlock since the TraitImplBlock is removed. It also refactors InherentImplItem to become simply ImplItem.
Diffstat (limited to 'gcc/rust/backend/rust-compile.cc')
-rw-r--r--gcc/rust/backend/rust-compile.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/rust/backend/rust-compile.cc b/gcc/rust/backend/rust-compile.cc
index ea21ad3..77036b2 100644
--- a/gcc/rust/backend/rust-compile.cc
+++ b/gcc/rust/backend/rust-compile.cc
@@ -137,9 +137,8 @@ CompileExpr::visit (HIR::MethodCallExpr &expr)
{
// this might fail because its a forward decl so we can attempt to
// resolve it now
- HIR::InherentImplItem *resolved_item
- = ctx->get_mappings ()->lookup_hir_implitem (
- expr.get_mappings ().get_crate_num (), ref, nullptr);
+ HIR::ImplItem *resolved_item = ctx->get_mappings ()->lookup_hir_implitem (
+ expr.get_mappings ().get_crate_num (), ref, nullptr);
if (resolved_item == nullptr)
{
rust_error_at (expr.get_locus (), "failed to lookup forward decl");