summaryrefslogtreecommitdiff
path: root/src/ast
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-04-05 13:17:36 +0800
committerJohn Hodge <tpg@mutabah.net>2015-04-05 13:17:36 +0800
commit7bee527fa774c397390618380bdab8bf4dec9cb0 (patch)
treebd8acf26cc9b431e135d03a3dcf4ebc6fa5d8202 /src/ast
parent0a5017bee88d6bf4acaf78a784c2d978ee71a87e (diff)
downloadmrust-7bee527fa774c397390618380bdab8bf4dec9cb0.tar.gz
Replace 'Self' at resolve-time, with special case for bounds
Diffstat (limited to 'src/ast')
-rw-r--r--src/ast/ast.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp
index 9aa02fe1..63e33ba6 100644
--- a/src/ast/ast.cpp
+++ b/src/ast/ast.cpp
@@ -66,11 +66,10 @@ bool ImplDef::matches(::std::vector<TypeRef>& out_types, const Path& trait, cons
int trait_match = m_trait.equal_no_generic(trait);
if( trait_match < 0 )
return false;
- DEBUG("Trait " << trait << " matches " << trait_match);
int type_match = m_type.equal_no_generic(type);
if( type_match < 0 )
return false;
- DEBUG("Type " << type << " matches " << type_match);
+ DEBUG("Match Tr:" <<trait_match << ", Ty:" << type_match << " for Trait " << trait << ", Type " << type);
// 2. If a parameter was seen, do the more expensive generic checks
// > Involves checking that parameters are valid