summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hir/type.hpp4
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;