@@ -459,7 +459,6 @@ fn ser_ty(cx: ext_ctxt, tps: ser_tps_map,
459
459
~[ ]
460
460
}
461
461
462
- ast:: ty_vstore ( @{ node: ast:: ty_vec ( mt) , _} , ast:: vstore_uniq) |
463
462
ast:: ty_vec ( mt) {
464
463
let ser_e =
465
464
cx. expr (
@@ -477,6 +476,11 @@ fn ser_ty(cx: ext_ctxt, tps: ser_tps_map,
477
476
} ]
478
477
}
479
478
479
+ // For unique vstores, just pass through to the underlying vec or str
480
+ ast:: ty_vstore ( ty, ast:: vstore_uniq) {
481
+ ser_ty ( cx, tps, ty, s, v)
482
+ }
483
+
480
484
ast:: ty_vstore ( _, _) {
481
485
cx. span_unimpl ( ty. span , "serialization for vstore types" ) ;
482
486
}
@@ -685,12 +689,16 @@ fn deser_ty(cx: ext_ctxt, tps: deser_tps_map,
685
689
#ast{ fail }
686
690
}
687
691
688
- ast:: ty_vstore ( @{ node: ast:: ty_vec ( mt) , _} , ast:: vstore_uniq) |
689
692
ast:: ty_vec ( mt) {
690
693
let l = deser_lambda ( cx, tps, mt. ty , cx. clone ( d) ) ;
691
694
#ast{ std:: serialization:: read_to_vec ( $( d) , $( l) ) }
692
695
}
693
696
697
+ // For unique vstores, just pass through to the underlying vec or str
698
+ ast:: ty_vstore ( ty, ast:: vstore_uniq) {
699
+ deser_ty ( cx, tps, ty, d)
700
+ }
701
+
694
702
ast:: ty_vstore ( _, _) {
695
703
cx. span_unimpl ( ty. span , "deserialization for vstore types" ) ;
696
704
}
0 commit comments