summaryrefslogtreecommitdiff
path: root/src/hir
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir')
-rw-r--r--src/hir/hir.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/hir/hir.cpp b/src/hir/hir.cpp
index 6b50c0f2..14a84d86 100644
--- a/src/hir/hir.cpp
+++ b/src/hir/hir.cpp
@@ -505,6 +505,12 @@ bool ::HIR::Crate::find_trait_impls(const ::HIR::SimplePath& trait, const ::HIR:
}
}
}
+ for( const auto& ec : this->m_ext_crates )
+ {
+ if( ec.second->find_trait_impls(trait, type, ty_res, callback) ) {
+ return true;
+ }
+ }
return false;
}
bool ::HIR::Crate::find_type_impls(const ::HIR::TypeRef& type, t_cb_resolve_type ty_res, ::std::function<bool(const ::HIR::TypeImpl&)> callback) const
@@ -517,5 +523,12 @@ bool ::HIR::Crate::find_type_impls(const ::HIR::TypeRef& type, t_cb_resolve_type
}
}
}
+ for( const auto& ec : this->m_ext_crates )
+ {
+ DEBUG("- " << ec.first);
+ if( ec.second->find_type_impls(type, ty_res, callback) ) {
+ return true;
+ }
+ }
return false;
}