Skip to content

Commit e22dc1a

Browse files
committed
---
yaml --- r: 56047 b: refs/heads/auto c: 26ecb30 h: refs/heads/master i: 56045: cd9f3a1 56043: 2c549fb 56039: a4737f8 56031: e436119 v: v3
1 parent ca57c64 commit e22dc1a

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: f3ab67ec5f75fc3376e5647dfb7e5b46a535dea7
17+
refs/heads/auto: 26ecb30f550a46d52528a7d45d9327ebce938e81
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/test/run-pass/auto-encode.rs

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use EBWriter = std::ebml::writer;
2222
use core::cmp::Eq;
2323
use core::io::Writer;
2424
use std::ebml;
25-
use std::serialize::{Encodable, Decodable};
25+
use std::serialize::{Decodable, Encodable};
2626
use std::time;
2727

2828
fn test_ebml<A:
@@ -39,8 +39,7 @@ fn test_ebml<A:
3939
assert!(*a1 == a2);
4040
}
4141

42-
#[auto_encode]
43-
#[auto_decode]
42+
#[deriving(Decodable, Encodable)]
4443
enum Expr {
4544
Val(uint),
4645
Plus(@Expr, @Expr),
@@ -107,32 +106,26 @@ impl cmp::Eq for CLike {
107106
fn ne(&self, other: &CLike) -> bool { !self.eq(other) }
108107
}
109108

110-
#[auto_encode]
111-
#[auto_decode]
112-
#[deriving(Eq)]
109+
#[deriving(Decodable, Encodable, Eq)]
113110
struct Spanned<T> {
114111
lo: uint,
115112
hi: uint,
116113
node: T,
117114
}
118115

119-
#[auto_encode]
120-
#[auto_decode]
116+
#[deriving(Decodable, Encodable)]
121117
struct SomeStruct { v: ~[uint] }
122118

123-
#[auto_encode]
124-
#[auto_decode]
119+
#[deriving(Decodable, Encodable)]
125120
struct Point {x: uint, y: uint}
126121

127-
#[auto_encode]
128-
#[auto_decode]
122+
#[deriving(Decodable, Encodable)]
129123
enum Quark<T> {
130124
Top(T),
131125
Bottom(T)
132126
}
133127

134-
#[auto_encode]
135-
#[auto_decode]
128+
#[deriving(Decodable, Encodable)]
136129
enum CLike { A, B, C }
137130

138131
pub fn main() {

0 commit comments

Comments
 (0)