summaryrefslogtreecommitdiff
path: root/src/hir/path.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/path.hpp')
-rw-r--r--src/hir/path.hpp3
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;