From 7b2f4755f3de2af6a8038ca960801853b86eb7ad Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Sat, 14 Jul 2012 12:45:45 -0700 Subject: Get rid of ast::ty_vstore, which was only used for fixed length. --- src/libsyntax/ext/auto_serialize.rs | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/auto_serialize.rs b/src/libsyntax/ext/auto_serialize.rs index ac2829643be..98671234249 100644 --- a/src/libsyntax/ext/auto_serialize.rs +++ b/src/libsyntax/ext/auto_serialize.rs @@ -497,15 +497,9 @@ fn ser_ty(cx: ext_ctxt, tps: ser_tps_map, }] } - // For unique vstores, just pass through to the underlying vec or str - ast::ty_vstore(ty, ast::vstore_uniq) { - ser_ty(cx, tps, ty, s, v) - } - - ast::ty_vstore(_, _) { - cx.span_unimpl(ty.span, ~"serialization for vstore types"); + ast::ty_fixed_length(_, _) { + cx.span_unimpl(ty.span, ~"serialization for fixed length types"); } - } } @@ -720,13 +714,8 @@ fn deser_ty(cx: ext_ctxt, tps: deser_tps_map, #ast{ std::serialization::read_to_vec($(d), $(l)) } } - // For unique vstores, just pass through to the underlying vec or str - ast::ty_vstore(ty, ast::vstore_uniq) { - deser_ty(cx, tps, ty, d) - } - - ast::ty_vstore(_, _) { - cx.span_unimpl(ty.span, ~"deserialization for vstore types"); + ast::ty_fixed_length(_, _) { + cx.span_unimpl(ty.span, ~"deserialization for fixed length types"); } } } -- cgit 1.4.1-3-g733a5