Skip to content

Commit 351409a

Browse files
author
Jorge Aparicio
committed
sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rs
1 parent 8c5bb80 commit 351409a

File tree

231 files changed

+1115
-1115
lines changed

Some content is hidden

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

231 files changed

+1115
-1115
lines changed

src/compiletest/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::fmt;
1313
use std::str::FromStr;
1414
use regex::Regex;
1515

16-
#[deriving(Clone, PartialEq)]
16+
#[derive(Clone, PartialEq)]
1717
pub enum Mode {
1818
CompileFail,
1919
RunFail,
@@ -59,7 +59,7 @@ impl fmt::Show for Mode {
5959
}
6060
}
6161

62-
#[deriving(Clone)]
62+
#[derive(Clone)]
6363
pub struct Config {
6464
// The library paths required for running the compiler
6565
pub compile_lib_path: String,

src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub struct ExpectedError {
3030
pub static EXPECTED_PATTERN : &'static str =
3131
r"//~(?P<follow>\|)?(?P<adjusts>\^*)\s*(?P<kind>\S*)\s*(?P<msg>.*)";
3232

33-
#[deriving(PartialEq, Show)]
33+
#[derive(PartialEq, Show)]
3434
enum WhichLine { ThisLine, FollowPrevious(uint), AdjustBackward(uint) }
3535

3636
// Load any test directives embedded in the file

src/liballoc/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,6 @@ mod tests {
800800
}
801801

802802
// Make sure deriving works with Arc<T>
803-
#[deriving(Eq, Ord, PartialEq, PartialOrd, Clone, Show, Default)]
803+
#[derive(Eq, Ord, PartialEq, PartialOrd, Clone, Show, Default)]
804804
struct Foo { inner: Arc<int> }
805805
}

src/libarena/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use std::rt::heap::{allocate, deallocate};
4646
// The way arena uses arrays is really deeply awful. The arrays are
4747
// allocated, and have capacities reserved, but the fill for the array
4848
// will always stay at 0.
49-
#[deriving(Clone, PartialEq)]
49+
#[derive(Clone, PartialEq)]
5050
struct Chunk {
5151
data: Rc<RefCell<Vec<u8>>>,
5252
fill: Cell<uint>,

src/libcollections/binary_heap.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//! use std::collections::BinaryHeap;
3131
//! use std::uint;
3232
//!
33-
//! #[deriving(Copy, Eq, PartialEq)]
33+
//! #[derive(Copy, Eq, PartialEq)]
3434
//! struct State {
3535
//! cost: uint,
3636
//! position: uint,
@@ -162,7 +162,7 @@ use vec::{self, Vec};
162162
/// A priority queue implemented with a binary heap.
163163
///
164164
/// This will be a max-heap.
165-
#[deriving(Clone)]
165+
#[derive(Clone)]
166166
#[stable]
167167
pub struct BinaryHeap<T> {
168168
data: Vec<T>,
@@ -565,7 +565,7 @@ pub struct Iter <'a, T: 'a> {
565565
iter: slice::Iter<'a, T>,
566566
}
567567

568-
// FIXME(#19839) Remove in favor of `#[deriving(Clone)]`
568+
// FIXME(#19839) Remove in favor of `#[derive(Clone)]`
569569
impl<'a, T> Clone for Iter<'a, T> {
570570
fn clone(&self) -> Iter<'a, T> {
571571
Iter { iter: self.iter.clone() }

src/libcollections/bit.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ impl cmp::Eq for Bitv {}
10401040

10411041
/// An iterator for `Bitv`.
10421042
#[stable]
1043-
#[deriving(Clone)]
1043+
#[derive(Clone)]
10441044
pub struct Iter<'a> {
10451045
bitv: &'a Bitv,
10461046
next_idx: uint,
@@ -1139,7 +1139,7 @@ impl<'a> RandomAccessIterator for Iter<'a> {
11391139
/// let bv: Bitv = s.into_bitv();
11401140
/// assert!(bv[3]);
11411141
/// ```
1142-
#[deriving(Clone)]
1142+
#[derive(Clone)]
11431143
#[stable]
11441144
pub struct BitvSet {
11451145
bitv: Bitv,
@@ -1784,15 +1784,15 @@ impl<S: hash::Writer> hash::Hash<S> for BitvSet {
17841784
}
17851785

17861786
/// An iterator for `BitvSet`.
1787-
#[deriving(Clone)]
1787+
#[derive(Clone)]
17881788
#[stable]
17891789
pub struct SetIter<'a> {
17901790
set: &'a BitvSet,
17911791
next_idx: uint
17921792
}
17931793

17941794
/// An iterator combining two `BitvSet` iterators.
1795-
#[deriving(Clone)]
1795+
#[derive(Clone)]
17961796
struct TwoBitPositions<'a> {
17971797
set: &'a BitvSet,
17981798
other: &'a BitvSet,

src/libcollections/btree/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ use super::node::{self, Node, Found, GoDown};
8181
/// force this degenerate behaviour to occur on every operation. While the total amount of work
8282
/// done on each operation isn't *catastrophic*, and *is* still bounded by O(B log<sub>B</sub>n),
8383
/// it is certainly much slower when it does.
84-
#[deriving(Clone)]
84+
#[derive(Clone)]
8585
#[stable]
8686
pub struct BTreeMap<K, V> {
8787
root: Node<K, V>,

src/libcollections/btree/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ impl<K: Clone, V: Clone> Clone for Node<K, V> {
496496
/// println!("Uninitialized memory: {}", handle.into_kv());
497497
/// }
498498
/// ```
499-
#[deriving(Copy)]
499+
#[derive(Copy)]
500500
pub struct Handle<NodeRef, Type, NodeType> {
501501
node: NodeRef,
502502
index: uint

src/libcollections/btree/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use btree_map::{BTreeMap, Keys};
3030
///
3131
/// See BTreeMap's documentation for a detailed discussion of this collection's performance
3232
/// benefits and drawbacks.
33-
#[deriving(Clone, Hash, PartialEq, Eq, Ord, PartialOrd)]
33+
#[derive(Clone, Hash, PartialEq, Eq, Ord, PartialOrd)]
3434
#[stable]
3535
pub struct BTreeSet<T>{
3636
map: BTreeMap<T, ()>,

src/libcollections/dlist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub struct IterMut<'a, T:'a> {
8484
}
8585

8686
/// An iterator over mutable references to the items of a `DList`.
87-
#[deriving(Clone)]
87+
#[derive(Clone)]
8888
#[stable]
8989
pub struct IntoIter<T> {
9090
list: DList<T>

0 commit comments

Comments
 (0)