Test fixes and rebase conflicts, round 1

This commit is contained in:
Alex Crichton
2015-04-01 14:04:20 -07:00
parent 655634e6ab
commit 0304e15e5c
2 changed files with 8 additions and 3 deletions

View File

@@ -252,11 +252,14 @@ pub fn strong_count<T>(this: &Arc<T>) -> usize { this.inner().strong.load(SeqCst
///
/// ```
/// # #![feature(alloc)]
/// use std::alloc::arc;
/// extern crate alloc;
/// # fn main() {
/// use alloc::arc;
///
/// let mut four = arc::Arc::new(4);
///
/// arc::unique(&mut four).map(|num| *num = 5);
/// # }
/// ```
#[inline]
#[unstable(feature = "alloc")]