Skip to content

Commit bfdd93c

Browse files
committed
---
yaml --- r: 54641 b: refs/heads/snap-stage3 c: 26ecb30 h: refs/heads/master i: 54639: 23698d8 v: v3
1 parent 9423b71 commit bfdd93c

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: f3ab67ec5f75fc3376e5647dfb7e5b46a535dea7
4+
refs/heads/snap-stage3: 26ecb30f550a46d52528a7d45d9327ebce938e81
55
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)