summaryrefslogtreecommitdiff
path: root/src/hir/serialise.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-10 22:13:02 +0800
committerJohn Hodge <tpg@mutabah.net>2016-12-10 22:13:02 +0800
commitac499f7f9eee32e751334e96d0d0bf2bb68b1b8f (patch)
tree3090cc482df4ab4d99f0c9a8ca50d12a68ec435c /src/hir/serialise.cpp
parentd395407fbd9f8a53276fbcc76fd5c61882426b9f (diff)
downloadmrust-ac499f7f9eee32e751334e96d0d0bf2bb68b1b8f.tar.gz
Trans - Slight handling of DST structs
Diffstat (limited to 'src/hir/serialise.cpp')
-rw-r--r--src/hir/serialise.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hir/serialise.cpp b/src/hir/serialise.cpp
index 54b61387..b4e7c6a2 100644
--- a/src/hir/serialise.cpp
+++ b/src/hir/serialise.cpp
@@ -810,6 +810,7 @@ namespace {
#undef BIT
m_out.write_u8(bitflag_1);
+ m_out.write_tag( static_cast<unsigned int>(m.dst_type) );
m_out.write_count( m.coerce_unsized_index );
m_out.write_count( m.unsized_field );
// TODO: auto_impls