diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-11 10:00:27 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-11 10:00:27 +0800 |
commit | f7f3d24fcf16f34f31d35b7e571725dff5e4c42a (patch) | |
tree | 16bb2ffaee066de084c37b8b2f67d9c03b1ece47 /src/hir/type.hpp | |
parent | 2da4fb9a180be57e396278bb0a7fa9eb1adc65f9 (diff) | |
download | mrust-f7f3d24fcf16f34f31d35b7e571725dff5e4c42a.tar.gz |
HIR Typecheck - Trait object comparison/manipulation
Diffstat (limited to 'src/hir/type.hpp')
-rw-r--r-- | src/hir/type.hpp | 4 |
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 |