summaryrefslogtreecommitdiff
path: root/src/hir_conv/bind.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-02-03 17:48:32 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-02-03 17:48:32 +0800
commit42b9c8704fe4aab25e8f9d0cca15a74b025eee43 (patch)
tree2fc5e86fc800c42290c486a417b33ad1f1b7ad09 /src/hir_conv/bind.cpp
parent4960edb7d948e43efc58a28ecd05fa9237c8d240 (diff)
downloadmrust-42b9c8704fe4aab25e8f9d0cca15a74b025eee43.tar.gz
HIR - Minimally-tested support for `extern { type }`
Diffstat (limited to 'src/hir_conv/bind.cpp')
-rw-r--r--src/hir_conv/bind.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hir_conv/bind.cpp b/src/hir_conv/bind.cpp
index 9b5043f4..b616a64f 100644
--- a/src/hir_conv/bind.cpp
+++ b/src/hir_conv/bind.cpp
@@ -456,6 +456,10 @@ namespace {
(TypeAlias,
BUG(sp, "TypeAlias encountered after `Resolve Type Aliases` - " << ty);
),
+ (ExternType,
+ e.binding = ::HIR::TypeRef::TypePathBinding::make_ExternType(&e3);
+ DEBUG("- " << ty);
+ ),
(Struct,
fix_param_count(sp, pe, e3.m_params, pe.m_params);
e.binding = ::HIR::TypeRef::TypePathBinding::make_Struct(&e3);