diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-09-02 11:28:09 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-09-02 11:28:27 +0800 |
commit | 39df0dc75a10ff3bea15b39f31454c2642a83ad1 (patch) | |
tree | 4a4b41ceb65f9ee891ad981be5342cfe09f314ea | |
parent | 01c0d4e198e2d6671ff3db19f977d088af4ecb15 (diff) | |
download | mrust-39df0dc75a10ff3bea15b39f31454c2642a83ad1.tar.gz |
HIR - Missed changed file required for placeholders
-rw-r--r-- | src/hir/type.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hir/type.hpp b/src/hir/type.hpp index e3aeec43..329af650 100644 --- a/src/hir/type.hpp +++ b/src/hir/type.hpp @@ -152,6 +152,10 @@ public: ::std::string name; // 0xFFFF = Self, 0-255 = Type/Trait, 256-511 = Method, 512-767 = Placeholder unsigned int binding; + + bool is_placeholder() const { + return (binding >> 8) == 2; + } }), (TraitObject, struct { ::HIR::TraitPath m_trait; |