diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-02-03 17:48:32 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-02-03 17:48:32 +0800 |
commit | 42b9c8704fe4aab25e8f9d0cca15a74b025eee43 (patch) | |
tree | 2fc5e86fc800c42290c486a417b33ad1f1b7ad09 /src/hir_conv/bind.cpp | |
parent | 4960edb7d948e43efc58a28ecd05fa9237c8d240 (diff) | |
download | mrust-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.cpp | 4 |
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); |