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)] /// # #![feature(alloc)]
/// use std::alloc::arc; /// extern crate alloc;
/// # fn main() {
/// use alloc::arc;
/// ///
/// let mut four = arc::Arc::new(4); /// let mut four = arc::Arc::new(4);
/// ///
/// arc::unique(&mut four).map(|num| *num = 5); /// arc::unique(&mut four).map(|num| *num = 5);
/// # }
/// ``` /// ```
#[inline] #[inline]
#[unstable(feature = "alloc")] #[unstable(feature = "alloc")]

View File

@ -2392,7 +2392,7 @@ fn resolve_type(cx: &DocContext,
}; };
match def { match def {
def::DefSelfTy(..) => { def::DefSelfTy(..) if path.segments.len() == 1 => {
return Generic(token::get_name(special_idents::type_self.name).to_string()); return Generic(token::get_name(special_idents::type_self.name).to_string());
} }
def::DefPrimTy(p) => match p { def::DefPrimTy(p) => match p {
@ -2412,7 +2412,9 @@ fn resolve_type(cx: &DocContext,
ast::TyFloat(ast::TyF32) => return Primitive(F32), ast::TyFloat(ast::TyF32) => return Primitive(F32),
ast::TyFloat(ast::TyF64) => return Primitive(F64), 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); let did = register_def(&*cx, def);