Skip to content

Commit acf8c5c

Browse files
committed
---
yaml --- r: 56809 b: refs/heads/try c: 26ecb30 h: refs/heads/master i: 56807: a921593 v: v3
1 parent 6badd05 commit acf8c5c

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
@@ -2,7 +2,7 @@
22
refs/heads/master: c081ffbd1e845687202a975ea2e698b623e5722f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 79a2b2eafc3c766cecec8a5f76317693bae9ed17
5-
refs/heads/try: f3ab67ec5f75fc3376e5647dfb7e5b46a535dea7
5+
refs/heads/try: 26ecb30f550a46d52528a7d45d9327ebce938e81
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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)