Skip to content

Commit 30e1492

Browse files
committed
Use derive rather than deriving in tests
1 parent 7506fe5 commit 30e1492

File tree

213 files changed

+320
-320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+320
-320
lines changed

src/test/auxiliary/trait_inheritance_overloading_xc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::cmp::PartialEq;
1313
pub trait MyNum : Add<Self,Self> + Sub<Self,Self> + Mul<Self,Self> + PartialEq + Clone {
1414
}
1515

16-
#[deriving(Clone, Show)]
16+
#[derive(Clone, Show)]
1717
pub struct MyInt {
1818
pub val: int
1919
}

src/test/bench/shootout-k-nucleotide.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static OCCURRENCES: [&'static str;5] = [
6060

6161
// Code implementation
6262

63-
#[deriving(PartialEq, PartialOrd, Ord, Eq)]
63+
#[derive(PartialEq, PartialOrd, Ord, Eq)]
6464
struct Code(u64);
6565

6666
impl Copy for Code {}

src/test/bench/task-perf-alloc-unwind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::os;
1414
use std::task;
1515
use std::time::Duration;
1616

17-
#[deriving(Clone)]
17+
#[derive(Clone)]
1818
enum List<T> {
1919
Nil, Cons(T, Box<List<T>>)
2020
}

src/test/compile-fail/attr-before-eof.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[deriving(Show)] //~ERROR expected item after attributes
11+
#[derive(Show)] //~ERROR expected item after attributes

src/test/compile-fail/borrowck-init-in-fru.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[deriving(Clone)]
11+
#[derive(Clone)]
1212
struct point {
1313
x: int,
1414
y: int,

src/test/compile-fail/borrowck-loan-in-overloaded-op.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111

12-
#[deriving(Clone)]
12+
#[derive(Clone)]
1313
struct foo(Box<uint>);
1414

1515
impl Add<foo, foo> for foo {

src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[deriving(Copy)]
11+
#[derive(Copy)]
1212
struct Point {
1313
x: int,
1414
y: int,

src/test/compile-fail/borrowck-move-out-of-vec-tail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// Test that we do not permit moves from &[] matched by a vec pattern.
1212

13-
#[deriving(Clone, Show)]
13+
#[derive(Clone, Show)]
1414
struct Foo {
1515
string: String
1616
}

src/test/compile-fail/coherence-blanket-conflicts-with-specific-multidispatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl<T> MyTrait<T> for T { //~ ERROR E0119
2424
}
2525
}
2626

27-
#[deriving(Clone)]
27+
#[derive(Clone)]
2828
struct MyType {
2929
dummy: uint
3030
}

src/test/compile-fail/copy-a-resource.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[deriving(Show)]
11+
#[derive(Show)]
1212
struct foo {
1313
i: int,
1414
}

0 commit comments

Comments
 (0)