summary refs log tree commit diff
path: root/src/libsyntax/codemap.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-05-16 08:55:57 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-05-16 08:55:57 +1000
commit5dc5efefd47527067ab5b7862d89a99da4824f49 (patch)
treecc012135abd498773efbdb299163035af2e7d989 /src/libsyntax/codemap.rs
parent6a9c3bd86e0271f26dc63bd12e0d54a35b704dff (diff)
downloadrust-5dc5efefd47527067ab5b7862d89a99da4824f49.tar.gz
rust-5dc5efefd47527067ab5b7862d89a99da4824f49.zip
syntax: deprecate #[auto_{en,de}code] in favour of #[deriving({En,De}codable)].
Replace all instances of #[auto_*code] with the appropriate #[deriving] attribute
and remove the majority of the actual code, leaving stubs to refer the user to
the new syntax.
Diffstat (limited to 'src/libsyntax/codemap.rs')
-rw-r--r--src/libsyntax/codemap.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs
index cd0b29f2a1e..44a368738fd 100644
--- a/src/libsyntax/codemap.rs
+++ b/src/libsyntax/codemap.rs
@@ -127,9 +127,7 @@ pub struct span {
     expn_info: Option<@ExpnInfo>
 }
 
-#[auto_encode]
-#[auto_decode]
-#[deriving(Eq)]
+#[deriving(Eq, Encodable, Decodable)]
 pub struct spanned<T> { node: T, span: span }
 
 impl cmp::Eq for span {