summaryrefslogtreecommitdiff
path: root/src/hir/type.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-06-11 22:05:05 +0800
committerJohn Hodge <tpg@mutabah.net>2016-06-11 22:05:05 +0800
commit312d91ae9b2e55aa1a447d7994468023490bfeb3 (patch)
tree37e48917ceb9bada08e99a2f30ff7073c95c8456 /src/hir/type.hpp
parent59ed1dee6a4777e380982b3b8dd464429d0f423b (diff)
downloadmrust-312d91ae9b2e55aa1a447d7994468023490bfeb3.tar.gz
HIR Typecheck - Fix pattern propagation
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 209e7f94..70a0419d 100644
--- a/src/hir/type.hpp
+++ b/src/hir/type.hpp
@@ -183,6 +183,9 @@ public:
static TypeRef new_array(TypeRef inner, ::HIR::ExprPtr size_expr) {
return TypeRef(Data::make_Array({box$(mv$(inner)), mv$(size_expr), ~0u}));
}
+ static TypeRef new_path(::HIR::Path path, TypePathBinding binding) {
+ return TypeRef(Data::make_Path({ mv$(path), mv$(binding) }));
+ }
TypeRef clone() const;