diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-03 22:54:18 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-03 22:54:18 -0500 |
| commit | 351409a62287c7993bc680d9dfcfa13cba9c9c0c (patch) | |
| tree | 47f99908d999aa612a4cd44932dcdc3b3a1a966a /src/libstd/sync | |
| parent | 8c5bb80d9b8373dd3c14cde0ba79f7d507839782 (diff) | |
| download | rust-351409a62287c7993bc680d9dfcfa13cba9c9c0c.tar.gz rust-351409a62287c7993bc680d9dfcfa13cba9c9c0c.zip | |
sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rs
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/mpsc/blocking.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sync/mpsc/mod.rs | 8 | ||||
| -rw-r--r-- | src/libstd/sync/mpsc/select.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sync/mpsc/sync.rs | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/libstd/sync/mpsc/blocking.rs b/src/libstd/sync/mpsc/blocking.rs index a5299012723..faff5f09f81 100644 --- a/src/libstd/sync/mpsc/blocking.rs +++ b/src/libstd/sync/mpsc/blocking.rs @@ -26,7 +26,7 @@ struct Inner { unsafe impl Send for Inner {} unsafe impl Sync for Inner {} -#[deriving(Clone)] +#[derive(Clone)] pub struct SignalToken { inner: Arc<Inner>, } diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs index e9dc3d986ba..de1724cbc4e 100644 --- a/src/libstd/sync/mpsc/mod.rs +++ b/src/libstd/sync/mpsc/mod.rs @@ -379,7 +379,7 @@ pub struct SyncSender<T> { /// A `send` operation can only fail if the receiving end of a channel is /// disconnected, implying that the data could never be received. The error /// contains the data being sent as a payload so it can be recovered. -#[deriving(PartialEq, Eq)] +#[derive(PartialEq, Eq)] #[stable] pub struct SendError<T>(pub T); @@ -387,13 +387,13 @@ pub struct SendError<T>(pub T); /// /// The `recv` operation can only fail if the sending half of a channel is /// disconnected, implying that no further messages will ever be received. -#[deriving(PartialEq, Eq, Clone, Copy)] +#[derive(PartialEq, Eq, Clone, Copy)] #[stable] pub struct RecvError; /// This enumeration is the list of the possible reasons that try_recv could not /// return data when called. -#[deriving(PartialEq, Clone, Copy)] +#[derive(PartialEq, Clone, Copy)] #[stable] pub enum TryRecvError { /// This channel is currently empty, but the sender(s) have not yet @@ -409,7 +409,7 @@ pub enum TryRecvError { /// This enumeration is the list of the possible error outcomes for the /// `SyncSender::try_send` method. -#[deriving(PartialEq, Clone)] +#[derive(PartialEq, Clone)] #[stable] pub enum TrySendError<T> { /// The data could not be sent on the channel because it would require that diff --git a/src/libstd/sync/mpsc/select.rs b/src/libstd/sync/mpsc/select.rs index f8197622f40..16adbf5aa4f 100644 --- a/src/libstd/sync/mpsc/select.rs +++ b/src/libstd/sync/mpsc/select.rs @@ -94,7 +94,7 @@ pub struct Handle<'rx, T:'rx> { struct Packets { cur: *mut Handle<'static, ()> } #[doc(hidden)] -#[deriving(PartialEq)] +#[derive(PartialEq)] pub enum StartResult { Installed, Abort, diff --git a/src/libstd/sync/mpsc/sync.rs b/src/libstd/sync/mpsc/sync.rs index ce5781dbc03..0eee10898bc 100644 --- a/src/libstd/sync/mpsc/sync.rs +++ b/src/libstd/sync/mpsc/sync.rs @@ -103,7 +103,7 @@ struct Buffer<T> { size: uint, } -#[deriving(Show)] +#[derive(Show)] pub enum Failure { Empty, Disconnected, |
