summaryrefslogtreecommitdiff
path: root/src/hir/hir_ops.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-04-22 08:09:31 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-04-22 08:09:31 +0800
commit018a5a14dbf4ea94bdbb1bd17db9f7ef3852c2b0 (patch)
tree84d65ba37106e61759ae282d2adfadfddafabb85 /src/hir/hir_ops.cpp
parent3bf9a102de5421864863c26626f667ab2429e8bc (diff)
downloadmrust-018a5a14dbf4ea94bdbb1bd17db9f7ef3852c2b0.tar.gz
Typecheck Expressions - Minor tweaks from trying to use all trait impls in impl search
Diffstat (limited to 'src/hir/hir_ops.cpp')
-rw-r--r--src/hir/hir_ops.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hir/hir_ops.cpp b/src/hir/hir_ops.cpp
index a082becd..4b35a0f0 100644
--- a/src/hir/hir_ops.cpp
+++ b/src/hir/hir_ops.cpp
@@ -271,6 +271,10 @@ namespace {
return ::OrdGreater;
}
+ if( left == right ) {
+ return ::OrdEqual;
+ }
+
TU_MATCH(::HIR::TypeRef::Data, (left.m_data), (le),
(Generic,
throw "";
@@ -335,7 +339,7 @@ namespace {
),
(Function,
TU_IFLET(::HIR::TypeRef::Data, right.m_data, Function, re,
- TODO(sp, "Function");
+ TODO(sp, "Function - " << left << " vs " << right);
//return typelist_ord_specific(sp, le.arg_types, re.arg_types);
)
else {