summaryrefslogtreecommitdiff
path: root/src/hir/crate_ptr.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-27 17:01:20 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-27 17:01:20 +0800
commit392cbf69e8ed3538c16af66e976ffad48e8d767f (patch)
treefd7d4dc99bf737a268316b680494d866c2374cc8 /src/hir/crate_ptr.hpp
parent042776beb6c68cd1fe6df75b8d5e5be4d873799f (diff)
downloadmrust-392cbf69e8ed3538c16af66e976ffad48e8d767f.tar.gz
AST - Roughing in `extern crate` loading infrastructure
Diffstat (limited to 'src/hir/crate_ptr.hpp')
-rw-r--r--src/hir/crate_ptr.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hir/crate_ptr.hpp b/src/hir/crate_ptr.hpp
index 06e04a6e..ad6f374e 100644
--- a/src/hir/crate_ptr.hpp
+++ b/src/hir/crate_ptr.hpp
@@ -28,7 +28,10 @@ public:
}
~CratePtr();
- Crate& operator*() { return *m_ptr; }
+ Crate& operator*() { return *m_ptr; }
+ const Crate& operator*() const { return *m_ptr; }
+ Crate* operator->() { return m_ptr; }
+ const Crate* operator->() const { return m_ptr; }
};
} // namespace HIR