sed -i -s 's/\bmod,/self,/g' **/*.rs

This commit is contained in:
Jorge Aparicio
2015-01-03 22:42:21 -05:00
parent c6c786671d
commit 56dcbd17fd
178 changed files with 291 additions and 291 deletions

View File

@@ -104,7 +104,7 @@ pub use core::atomic::{AtomicBool, AtomicInt, AtomicUint, AtomicPtr};
pub use core::atomic::{INIT_ATOMIC_BOOL, INIT_ATOMIC_INT, INIT_ATOMIC_UINT};
pub use core::atomic::{ATOMIC_BOOL_INIT, ATOMIC_INT_INIT, ATOMIC_UINT_INIT};
pub use core::atomic::fence;
pub use core::atomic::Ordering::{mod, Relaxed, Release, Acquire, AcqRel, SeqCst};
pub use core::atomic::Ordering::{self, Relaxed, Release, Acquire, AcqRel, SeqCst};
/// An atomic, nullable unique pointer
///

View File

@@ -10,8 +10,8 @@
use prelude::v1::*;
use sync::atomic::{mod, AtomicUint};
use sync::poison::{mod, LockResult};
use sync::atomic::{self, AtomicUint};
use sync::poison::{self, LockResult};
use sys_common::condvar as sys;
use sys_common::mutex as sys_mutex;
use time::Duration;

View File

@@ -40,7 +40,7 @@ use self::MyUpgrade::*;
use core::prelude::*;
use sync::mpsc::Receiver;
use sync::mpsc::blocking::{mod, SignalToken};
use sync::mpsc::blocking::{self, SignalToken};
use core::mem;
use sync::atomic;

View File

@@ -62,7 +62,7 @@ use core::mem;
use core::uint;
use sync::mpsc::{Receiver, RecvError};
use sync::mpsc::blocking::{mod, SignalToken};
use sync::mpsc::blocking::{self, SignalToken};
/// The "receiver set" of the select interface. This structure is used to manage
/// a set of receivers which are being selected over.

View File

@@ -27,7 +27,7 @@ use core::int;
use sync::{atomic, Mutex, MutexGuard};
use sync::mpsc::mpsc_queue as mpsc;
use sync::mpsc::blocking::{mod, SignalToken};
use sync::mpsc::blocking::{self, SignalToken};
use sync::mpsc::select::StartResult;
use sync::mpsc::select::StartResult::*;
use thread::Thread;

View File

@@ -28,7 +28,7 @@ use core::cmp;
use core::int;
use thread::Thread;
use sync::mpsc::blocking::{mod, SignalToken};
use sync::mpsc::blocking::{self, SignalToken};
use sync::mpsc::spsc_queue as spsc;
use sync::mpsc::Receiver;
use sync::atomic;

View File

@@ -42,8 +42,8 @@ use vec::Vec;
use core::mem;
use sync::{atomic, Mutex, MutexGuard};
use sync::mpsc::blocking::{mod, WaitToken, SignalToken};
use sync::mpsc::select::StartResult::{mod, Installed, Abort};
use sync::mpsc::blocking::{self, WaitToken, SignalToken};
use sync::mpsc::select::StartResult::{self, Installed, Abort};
pub struct Packet<T> {
/// Only field outside of the mutex. Just done for kicks, but mainly because

View File

@@ -13,7 +13,7 @@ use prelude::v1::*;
use cell::UnsafeCell;
use kinds::marker;
use ops::{Deref, DerefMut};
use sync::poison::{mod, TryLockError, TryLockResult, LockResult};
use sync::poison::{self, TryLockError, TryLockResult, LockResult};
use sys_common::mutex as sys;
/// A mutual exclusion primitive useful for protecting shared data

View File

@@ -13,7 +13,7 @@ use prelude::v1::*;
use cell::UnsafeCell;
use kinds::marker;
use ops::{Deref, DerefMut};
use sync::poison::{mod, LockResult, TryLockError, TryLockResult};
use sync::poison::{self, LockResult, TryLockError, TryLockResult};
use sys_common::rwlock as sys;
/// A reader-writer lock
@@ -362,7 +362,7 @@ impl<'a, T> Drop for RWLockWriteGuard<'a, T> {
mod tests {
use prelude::v1::*;
use rand::{mod, Rng};
use rand::{self, Rng};
use sync::mpsc::channel;
use thread::Thread;
use sync::{Arc, RWLock, StaticRWLock, RWLOCK_INIT};