diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-01 14:04:20 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-01 15:38:59 -0700 |
| commit | 0304e15e5c39654346e827c2bb25ca41ed310c86 (patch) | |
| tree | 2e8b8ea5a0daf51f819acaab9b9e2572459e2a60 | |
| parent | 655634e6ab00707ef98034dcfb32000cbfa7a01c (diff) | |
| download | rust-0304e15e5c39654346e827c2bb25ca41ed310c86.tar.gz rust-0304e15e5c39654346e827c2bb25ca41ed310c86.zip | |
Test fixes and rebase conflicts, round 1
| -rw-r--r-- | src/liballoc/arc.rs | 5 | ||||
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index 73d109f3c8d..f87c450eda5 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -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")] diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index e4d9fac5b9c..e0ed83f4019 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -2392,7 +2392,7 @@ fn resolve_type(cx: &DocContext, }; match def { - def::DefSelfTy(..) => { + def::DefSelfTy(..) if path.segments.len() == 1 => { return Generic(token::get_name(special_idents::type_self.name).to_string()); } def::DefPrimTy(p) => match p { @@ -2412,7 +2412,9 @@ fn resolve_type(cx: &DocContext, ast::TyFloat(ast::TyF32) => return Primitive(F32), ast::TyFloat(ast::TyF64) => return Primitive(F64), }, - def::DefTyParam(_, _, _, n) => return Generic(token::get_name(n).to_string()), + def::DefTyParam(_, _, _, n) => { + return Generic(token::get_name(n).to_string()) + } _ => {} }; let did = register_def(&*cx, def); |
