summaryrefslogtreecommitdiff
path: root/src/hir/deserialise.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-20 14:44:39 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-20 14:44:39 +0800
commit54834a34bddffc8f4066642c82780646be846024 (patch)
treea10f62f897d40ce468b13a21839a6bbe364f87db /src/hir/deserialise.cpp
parent4299906bf3a80e607d7e1ecff05c47a1b10074de (diff)
downloadmrust-54834a34bddffc8f4066642c82780646be846024.tar.gz
HIR Serialise - Fix serialisation of ErasedType
Diffstat (limited to 'src/hir/deserialise.cpp')
-rw-r--r--src/hir/deserialise.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hir/deserialise.cpp b/src/hir/deserialise.cpp
index e1939d6d..de7790ee 100644
--- a/src/hir/deserialise.cpp
+++ b/src/hir/deserialise.cpp
@@ -610,6 +610,12 @@ namespace {
deserialise_vec< ::HIR::GenericPath>(),
"" // TODO: m_lifetime
})
+ _(ErasedType, {
+ deserialise_path(),
+ static_cast<unsigned int>(m_in.read_count()),
+ deserialise_vec< ::HIR::TraitPath>(),
+ "" // TODO: m_lifetime
+ })
_(Array, {
deserialise_ptr< ::HIR::TypeRef>(),
nullptr,