From 8650c6f683cf43e9ced27e81945c20234d2bb61c Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Mon, 17 Dec 2012 19:31:04 -0800 Subject: Switch from serialization to std::serialize. (snapshot) --- src/libsyntax/parse/token.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 7e7c61d2bf2..04e6e187dbb 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -12,8 +12,8 @@ use util::interner; use util::interner::Interner; use std::map::HashMap; -#[auto_serialize] -#[auto_deserialize] +#[auto_encode] +#[auto_decode] enum binop { PLUS, MINUS, @@ -27,8 +27,8 @@ enum binop { SHR, } -#[auto_serialize] -#[auto_deserialize] +#[auto_encode] +#[auto_decode] enum Token { /* Expression-operator symbols. */ EQ, @@ -85,8 +85,8 @@ enum Token { EOF, } -#[auto_serialize] -#[auto_deserialize] +#[auto_encode] +#[auto_decode] /// For interpolation during macro expansion. enum nonterminal { nt_item(@ast::item), @@ -351,7 +351,7 @@ impl ident_interner { } /* Key for thread-local data for sneaking interner information to the - * serializer/deserializer. It sounds like a hack because it is one. + * encoder/decoder. It sounds like a hack because it is one. * Bonus ultra-hack: functions as keys don't work across crates, * so we have to use a unique number. See taskgroup_key! in task.rs * for another case of this. */ -- cgit 1.4.1-3-g733a5