test: replace uses of old deriving attribute with new one
This commit is contained in:
parent
9966eaaba4
commit
ec960963c1
@ -1,6 +1,6 @@
|
||||
// error-pattern:expected: 15, given: 14
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
struct Point { x : int }
|
||||
|
||||
fn main() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
struct Point { x : int }
|
||||
|
||||
fn main() {
|
||||
|
@ -121,7 +121,7 @@ impl cmp::Eq for CLike {
|
||||
|
||||
#[auto_encode]
|
||||
#[auto_decode]
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
struct Spanned<T> {
|
||||
lo: uint,
|
||||
hi: uint,
|
||||
|
@ -88,7 +88,7 @@ mod test {
|
||||
}
|
||||
}
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
struct p {
|
||||
x: int,
|
||||
y: int,
|
||||
|
@ -1,4 +1,4 @@
|
||||
#[deriving_clone]
|
||||
#[deriving(Clone)]
|
||||
enum E {
|
||||
A,
|
||||
B(()),
|
||||
|
@ -1,4 +1,4 @@
|
||||
#[deriving_clone]
|
||||
#[deriving(Clone)]
|
||||
enum E<T,U> {
|
||||
A(T),
|
||||
B(T,U),
|
||||
|
@ -1,4 +1,4 @@
|
||||
#[deriving_clone]
|
||||
#[deriving(Clone)]
|
||||
struct S<T> {
|
||||
foo: (),
|
||||
bar: (),
|
||||
|
@ -1,4 +1,4 @@
|
||||
#[deriving_clone]
|
||||
#[deriving(Clone)]
|
||||
struct S<T>(T, ());
|
||||
|
||||
fn main() {}
|
||||
|
@ -1,4 +1,4 @@
|
||||
#[deriving_clone]
|
||||
#[deriving(Clone)]
|
||||
struct S {
|
||||
_int: int,
|
||||
_i8: i8,
|
||||
|
@ -1,4 +1,4 @@
|
||||
#[deriving_clone]
|
||||
#[deriving(Clone)]
|
||||
struct S((), ());
|
||||
|
||||
fn main() {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
type task_id = int;
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
pub enum Task {
|
||||
TaskHandle(task_id)
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
enum Foo {
|
||||
Bar,
|
||||
Baz,
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
enum Foo {
|
||||
Bar(int, int),
|
||||
Baz(float, float)
|
||||
|
@ -10,13 +10,13 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[deriving_iter_bytes]
|
||||
#[deriving(IterBytes)]
|
||||
enum Foo {
|
||||
Bar(int, char),
|
||||
Baz(char, int)
|
||||
}
|
||||
|
||||
#[deriving_iter_bytes]
|
||||
#[deriving(IterBytes)]
|
||||
enum A {
|
||||
B,
|
||||
C,
|
||||
|
@ -10,7 +10,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[deriving_iter_bytes]
|
||||
#[deriving(IterBytes)]
|
||||
struct Foo {
|
||||
x: int,
|
||||
y: int,
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
struct Foo;
|
||||
|
||||
pub fn main() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
enum S {
|
||||
X { x: int, y: int },
|
||||
Y
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
struct Foo(int, int, ~str);
|
||||
|
||||
pub fn main() {
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
struct Foo {
|
||||
x: int,
|
||||
y: int,
|
||||
|
@ -10,8 +10,8 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving_iter_bytes]
|
||||
#[deriving(Eq)]
|
||||
#[deriving(IterBytes)]
|
||||
struct Foo<T> {
|
||||
x: int,
|
||||
y: T,
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// xfail-test --- broken on 32-bit ABIs! (#5347)
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
struct TwoU64s {
|
||||
one: u64, two: u64
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
// xfail-test --- broken on 32-bit ABIs! (#5347)
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
struct TwoU64s {
|
||||
one: u64, two: u64
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ pub mod pipes {
|
||||
payload: Option<T>
|
||||
}
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
pub enum state {
|
||||
empty,
|
||||
full,
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
struct Bike {
|
||||
name: ~str,
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
|
||||
#[deriving_eq]
|
||||
#[deriving(Eq)]
|
||||
enum t { a, b(~str), }
|
||||
|
||||
fn make(i: int) -> t {
|
||||
|
Loading…
x
Reference in New Issue
Block a user