diff options
| author | bors <bors@rust-lang.org> | 2015-01-04 04:50:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-01-04 04:50:56 +0000 |
| commit | 470118f3e915cdc8f936aca0640b28a7a3d8dc6c (patch) | |
| tree | 47f99908d999aa612a4cd44932dcdc3b3a1a966a /src/liballoc | |
| parent | c6c786671d692d7b13c2e5c68a53001327b4b125 (diff) | |
| parent | 351409a62287c7993bc680d9dfcfa13cba9c9c0c (diff) | |
| download | rust-470118f3e915cdc8f936aca0640b28a7a3d8dc6c.tar.gz rust-470118f3e915cdc8f936aca0640b28a7a3d8dc6c.zip | |
auto merge of #20504 : japaric/rust/derive-self, r=alexcrichton
I put the sed scripts in the commits, in case this needs a "rebase".
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/arc.rs | 6 | ||||
| -rw-r--r-- | src/liballoc/boxed.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/rc.rs | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index 59106aa9777..0a814183346 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -71,7 +71,7 @@ use core::atomic; use core::atomic::Ordering::{Relaxed, Release, Acquire, SeqCst}; use core::borrow::BorrowFrom; use core::clone::Clone; -use core::fmt::{mod, Show}; +use core::fmt::{self, Show}; use core::cmp::{Eq, Ord, PartialEq, PartialOrd, Ordering}; use core::default::Default; use core::kinds::{Sync, Send}; @@ -81,7 +81,7 @@ use core::nonzero::NonZero; use core::ops::{Drop, Deref}; use core::option::Option; use core::option::Option::{Some, None}; -use core::ptr::{mod, PtrExt}; +use core::ptr::{self, PtrExt}; use heap::deallocate; /// An atomically reference counted wrapper for shared state. @@ -800,6 +800,6 @@ mod tests { } // Make sure deriving works with Arc<T> - #[deriving(Eq, Ord, PartialEq, PartialOrd, Clone, Show, Default)] + #[derive(Eq, Ord, PartialEq, PartialOrd, Clone, Show, Default)] struct Foo { inner: Arc<int> } } diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index e836b08459b..362f6c66b59 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -17,7 +17,7 @@ use core::clone::Clone; use core::cmp::{PartialEq, PartialOrd, Eq, Ord, Ordering}; use core::default::Default; use core::fmt; -use core::hash::{mod, Hash}; +use core::hash::{self, Hash}; use core::kinds::Sized; use core::mem; use core::option::Option; diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index c57231fc434..c4b455aff5c 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -147,14 +147,14 @@ use core::clone::Clone; use core::cmp::{PartialEq, PartialOrd, Eq, Ord, Ordering}; use core::default::Default; use core::fmt; -use core::hash::{mod, Hash}; +use core::hash::{self, Hash}; use core::kinds::marker; use core::mem::{transmute, min_align_of, size_of, forget}; use core::nonzero::NonZero; use core::ops::{Deref, Drop}; use core::option::Option; use core::option::Option::{Some, None}; -use core::ptr::{mod, PtrExt}; +use core::ptr::{self, PtrExt}; use core::result::Result; use core::result::Result::{Ok, Err}; @@ -264,7 +264,7 @@ pub fn is_unique<T>(rc: &Rc<T>) -> bool { /// # Example /// /// ``` -/// use std::rc::{mod, Rc}; +/// use std::rc::{self, Rc}; /// /// let x = Rc::new(3u); /// assert_eq!(rc::try_unwrap(x), Ok(3u)); @@ -298,7 +298,7 @@ pub fn try_unwrap<T>(rc: Rc<T>) -> Result<T, Rc<T>> { /// # Example /// /// ``` -/// use std::rc::{mod, Rc}; +/// use std::rc::{self, Rc}; /// /// let mut x = Rc::new(3u); /// *rc::get_mut(&mut x).unwrap() = 4u; |
