summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-16 12:14:46 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-16 12:14:46 +0800
commit3bf66ae06912107e60b697358f9a17672a2db263 (patch)
tree35afd0809a25d053d07711916f83e4e7579e7736
parent0ce263d0111d4f875a45f12c7d6fe0f049a11cd9 (diff)
downloadmrust-3bf66ae06912107e60b697358f9a17672a2db263.tar.gz
HIR - (minor) Comment on format of generic binding field
-rw-r--r--src/hir/type.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hir/type.hpp b/src/hir/type.hpp
index 8065bc1e..fecaaa88 100644
--- a/src/hir/type.hpp
+++ b/src/hir/type.hpp
@@ -125,6 +125,7 @@ public:
}),
(Generic, struct {
::std::string name;
+ // 0xFFFF = Self, 0-255 = Type/Trait, 256-511 = Method, 512-767 = Placeholder
unsigned int binding;
}),
(TraitObject, struct {