Skip to content

Commit 275c1e4

Browse files
committed
Serialize out uniq vecs types
1 parent 986662c commit 275c1e4

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/libsyntax/ext/auto_serialize.rs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,7 @@ fn ser_ty(cx: ext_ctxt, tps: ser_tps_map,
452452
[]
453453
}
454454

455-
ast::ty_vstore(_, _) {
456-
cx.span_unimpl(ty.span, "serialization for vstore types");
457-
}
458-
455+
ast::ty_vstore(@{node: ast::ty_vec(mt),_}, ast::vstore_uniq) |
459456
ast::ty_vec(mt) {
460457
let ser_e =
461458
cx.expr(
@@ -472,6 +469,11 @@ fn ser_ty(cx: ext_ctxt, tps: ser_tps_map,
472469
std::serialization::emit_from_vec($(s), $(v), {|__e| $(ser_e) })
473470
}]
474471
}
472+
473+
ast::ty_vstore(_, _) {
474+
cx.span_unimpl(ty.span, "serialization for vstore types");
475+
}
476+
475477
}
476478
}
477479

@@ -673,14 +675,15 @@ fn deser_ty(cx: ext_ctxt, tps: deser_tps_map,
673675
#ast{ fail }
674676
}
675677

676-
ast::ty_vstore(_, _) {
677-
cx.span_unimpl(ty.span, "deserialization for vstore types");
678-
}
679-
678+
ast::ty_vstore(@{node: ast::ty_vec(mt),_}, ast::vstore_uniq) |
680679
ast::ty_vec(mt) {
681680
let l = deser_lambda(cx, tps, mt.ty, cx.clone(d));
682681
#ast{ std::serialization::read_to_vec($(d), $(l)) }
683682
}
683+
684+
ast::ty_vstore(_, _) {
685+
cx.span_unimpl(ty.span, "deserialization for vstore types");
686+
}
684687
}
685688
}
686689

0 commit comments

Comments
 (0)