summaryrefslogtreecommitdiff
path: root/src/hir/type.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-06-05 20:37:45 +0800
committerJohn Hodge <tpg@mutabah.net>2016-06-05 20:37:45 +0800
commit52eb59ef0e0eedb8ea4da2210c5357245e523dfd (patch)
tree5f2a1483b0a1dd3ce3f0b1edaab8d55b90be276d /src/hir/type.hpp
parente3f35882f8240e506e34bb37c8fef1ca34601882 (diff)
downloadmrust-52eb59ef0e0eedb8ea4da2210c5357245e523dfd.tar.gz
Resolve - UFCS resolution expanded to handle `Self` and params
Diffstat (limited to 'src/hir/type.hpp')
-rw-r--r--src/hir/type.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir/type.hpp b/src/hir/type.hpp
index 82b77067..793dce4d 100644
--- a/src/hir/type.hpp
+++ b/src/hir/type.hpp
@@ -149,6 +149,9 @@ public:
TypeRef clone() const;
void fmt(::std::ostream& os) const;
+
+ bool operator==(const ::HIR::TypeRef& x) const;
+ bool operator!=(const ::HIR::TypeRef& x) const { return !(*this == x); }
};
extern ::std::ostream& operator<<(::std::ostream& os, const ::HIR::TypeRef& ty);