test: replace uses of old deriving attribute with new one

This commit is contained in:
Andrew Paseltiner 2013-03-20 11:42:59 -04:00
parent 9966eaaba4
commit ec960963c1
25 changed files with 27 additions and 27 deletions

View File

@ -1,6 +1,6 @@
// error-pattern:expected: 15, given: 14
#[deriving_eq]
#[deriving(Eq)]
struct Point { x : int }
fn main() {

View File

@ -1,4 +1,4 @@
#[deriving_eq]
#[deriving(Eq)]
struct Point { x : int }
fn main() {

View File

@ -121,7 +121,7 @@ impl cmp::Eq for CLike {
#[auto_encode]
#[auto_decode]
#[deriving_eq]
#[deriving(Eq)]
struct Spanned<T> {
lo: uint,
hi: uint,

View File

@ -88,7 +88,7 @@ mod test {
}
}
#[deriving_eq]
#[deriving(Eq)]
struct p {
x: int,
y: int,

View File

@ -1,4 +1,4 @@
#[deriving_clone]
#[deriving(Clone)]
enum E {
A,
B(()),

View File

@ -1,4 +1,4 @@
#[deriving_clone]
#[deriving(Clone)]
enum E<T,U> {
A(T),
B(T,U),

View File

@ -1,4 +1,4 @@
#[deriving_clone]
#[deriving(Clone)]
struct S<T> {
foo: (),
bar: (),

View File

@ -1,4 +1,4 @@
#[deriving_clone]
#[deriving(Clone)]
struct S<T>(T, ());
fn main() {}

View File

@ -1,4 +1,4 @@
#[deriving_clone]
#[deriving(Clone)]
struct S {
_int: int,
_i8: i8,

View File

@ -1,4 +1,4 @@
#[deriving_clone]
#[deriving(Clone)]
struct S((), ());
fn main() {}

View File

@ -1,6 +1,6 @@
type task_id = int;
#[deriving_eq]
#[deriving(Eq)]
pub enum Task {
TaskHandle(task_id)
}

View File

@ -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,

View File

@ -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)

View File

@ -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,

View File

@ -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,

View File

@ -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() {

View File

@ -1,4 +1,4 @@
#[deriving_eq]
#[deriving(Eq)]
enum S {
X { x: int, y: int },
Y

View File

@ -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() {

View File

@ -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,

View File

@ -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,

View File

@ -12,7 +12,7 @@
// xfail-test --- broken on 32-bit ABIs! (#5347)
#[deriving_eq]
#[deriving(Eq)]
struct TwoU64s {
one: u64, two: u64
}

View File

@ -13,7 +13,7 @@
// xfail-test --- broken on 32-bit ABIs! (#5347)
#[deriving_eq]
#[deriving(Eq)]
struct TwoU64s {
one: u64, two: u64
}

View File

@ -20,7 +20,7 @@ pub mod pipes {
payload: Option<T>
}
#[deriving_eq]
#[deriving(Eq)]
pub enum state {
empty,
full,

View File

@ -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,
}

View File

@ -9,7 +9,7 @@
// except according to those terms.
#[deriving_eq]
#[deriving(Eq)]
enum t { a, b(~str), }
fn make(i: int) -> t {