summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-16 13:18:22 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-16 13:18:22 +0800
commit3ba64b2a4adbc6ed8606f77a1a2c5cf7648db313 (patch)
treeb534e5cca9496dd22836bef8a157d487b2208b1e
parent0769120c317befaf3aa41d5859bbd588fa2326e6 (diff)
downloadmrust-3ba64b2a4adbc6ed8606f77a1a2c5cf7648db313.tar.gz
HIR - Don't print crate name when searching for inherent impls
-rw-r--r--src/hir/hir.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir/hir.cpp b/src/hir/hir.cpp
index 5177f101..0c42ba05 100644
--- a/src/hir/hir.cpp
+++ b/src/hir/hir.cpp
@@ -620,6 +620,7 @@ bool ::HIR::Crate::find_auto_trait_impls(const ::HIR::SimplePath& trait, const :
}
bool ::HIR::Crate::find_type_impls(const ::HIR::TypeRef& type, t_cb_resolve_type ty_res, ::std::function<bool(const ::HIR::TypeImpl&)> callback) const
{
+ // TODO: Restrict which crate is searched based on the type.
for( const auto& impl : this->m_type_impls )
{
if( impl.matches_type(type, ty_res) ) {
@@ -630,7 +631,7 @@ 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);
+ //DEBUG("- " << ec.first);
if( ec.second->find_type_impls(type, ty_res, callback) ) {
return true;
}