summaryrefslogtreecommitdiff
path: root/src/hir/type.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-02-05 10:56:21 +0800
committerJohn Hodge <tpg@mutabah.net>2017-02-05 10:56:21 +0800
commit9700e50573fb44cf30fa6247ef6ff43e44bb9e1f (patch)
treecfd77503c7353b4106e352d8d1435d04f9581274 /src/hir/type.hpp
parentb82a927e857b91a420b6ee40408f11c10abb919d (diff)
downloadmrust-9700e50573fb44cf30fa6247ef6ff43e44bb9e1f.tar.gz
HIR Expand Ty Aliases - Replace `Self` with impl ty in impls
Diffstat (limited to 'src/hir/type.hpp')
-rw-r--r--src/hir/type.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir/type.hpp b/src/hir/type.hpp
index aaf79359..3bf384a6 100644
--- a/src/hir/type.hpp
+++ b/src/hir/type.hpp
@@ -14,6 +14,9 @@
#include <hir/expr_ptr.hpp>
#include <span.hpp>
+/// Binding index for a Generic that indicates "Self"
+#define GENERIC_Self 0xFFFF
+
namespace HIR {
class Struct;