diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-23 22:16:29 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-23 22:16:29 +0800 |
commit | b96c1a08cec9be6cc29f47eb151c3ad91075a819 (patch) | |
tree | faf4259c8d8e59c7433a0dfca7313d0c7c686f5b /src/hir/crate_ptr.hpp | |
parent | 1f9a4180a3b54f85f37919ba4ca709f8e8250bb6 (diff) | |
download | mrust-b96c1a08cec9be6cc29f47eb151c3ad91075a819.tar.gz |
HIR - Add type alias replacement. Other related changes below
- Added pretty printing for HIR paths and types
- Added a sub-pass to resolve/index that makes all index paths point at
the actual item (no imports involved)
- Split up some contents of main_bindings.hpp
Diffstat (limited to 'src/hir/crate_ptr.hpp')
-rw-r--r-- | src/hir/crate_ptr.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hir/crate_ptr.hpp b/src/hir/crate_ptr.hpp index df60329e..06e04a6e 100644 --- a/src/hir/crate_ptr.hpp +++ b/src/hir/crate_ptr.hpp @@ -27,6 +27,8 @@ public: return *this; } ~CratePtr(); + + Crate& operator*() { return *m_ptr; } }; } // namespace HIR |