diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-29 21:41:05 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-29 21:41:05 +0800 |
commit | 73bcd2fb0bda8f939a6c1385b419a67ad8eeef2c (patch) | |
tree | 5c397d572cd5ddfb0a7d55c35ff430f73e6073a5 /src/hir/path.hpp | |
parent | fd9b01b2d8b1efb4f7f95a72af4eeff2fae2a576 (diff) | |
download | mrust-73bcd2fb0bda8f939a6c1385b419a67ad8eeef2c.tar.gz |
HIR Typecheck - Expression inference coming along
Diffstat (limited to 'src/hir/path.hpp')
-rw-r--r-- | src/hir/path.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir/path.hpp b/src/hir/path.hpp index e482469e..b5bc061b 100644 --- a/src/hir/path.hpp +++ b/src/hir/path.hpp @@ -35,6 +35,9 @@ struct SimplePath bool operator==(const SimplePath& x) const { return m_crate_name == x.m_crate_name && m_components == x.m_components; } + bool operator!=(const SimplePath& x) const { + return !(*this == x); + } bool operator<(const SimplePath& x) const { if( m_crate_name < x.m_crate_name ) return true; if( m_components < x.m_components ) return true; |