summaryrefslogtreecommitdiff
path: root/src/hir/type.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-06-11 10:00:27 +0800
committerJohn Hodge <tpg@mutabah.net>2016-06-11 10:00:27 +0800
commitf7f3d24fcf16f34f31d35b7e571725dff5e4c42a (patch)
tree16bb2ffaee066de084c37b8b2f67d9c03b1ece47 /src/hir/type.hpp
parent2da4fb9a180be57e396278bb0a7fa9eb1adc65f9 (diff)
downloadmrust-f7f3d24fcf16f34f31d35b7e571725dff5e4c42a.tar.gz
HIR Typecheck - Trait object comparison/manipulation
Diffstat (limited to 'src/hir/type.hpp')
-rw-r--r--src/hir/type.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hir/type.hpp b/src/hir/type.hpp
index b09d3f40..42d1323e 100644
--- a/src/hir/type.hpp
+++ b/src/hir/type.hpp
@@ -50,6 +50,10 @@ enum class BorrowType
struct LifetimeRef
{
::std::string name;
+
+ bool operator==(const LifetimeRef& x) const {
+ return name == x.name;
+ }
};
struct FunctionType