summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2019-10-27 12:24:31 +0800
committerJohn Hodge <tpg@mutabah.net>2019-10-27 12:24:31 +0800
commitb76811a7d80cf6998dfd0bbf2415a723df6a2002 (patch)
treedb0c8b36d0ca9000f91ca69a698c14f3272ff49f /src
parenta319866e918756e547dc8ac43ab5c1ab1077fdbb (diff)
downloadmrust-b76811a7d80cf6998dfd0bbf2415a723df6a2002.tar.gz
HIR - Restore change from 0992c4af5242fc95e8cc028c5af7fb86424e624c (lost in split to `hir_ops.cpp`)
Diffstat (limited to 'src')
-rw-r--r--src/hir/hir_ops.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/hir/hir_ops.cpp b/src/hir/hir_ops.cpp
index f187bafe..3a33d5cb 100644
--- a/src/hir/hir_ops.cpp
+++ b/src/hir/hir_ops.cpp
@@ -324,10 +324,12 @@ namespace {
TODO(sp, "ErasedType - " << left);
),
(Function,
- TU_IFLET(::HIR::TypeRef::Data, right.m_data, Function, re,
+ if(/*const auto* re =*/ right.m_data.opt_Function() ) {
+ if( left == right )
+ return ::OrdEqual;
TODO(sp, "Function - " << left << " vs " << right);
- //return typelist_ord_specific(sp, le.arg_types, re.arg_types);
- )
+ //return typelist_ord_specific(sp, le.arg_types, re->arg_types);
+ }
else {
BUG(sp, "Mismatched types - " << left << " and " << right);
}