Skip to content

Commit

Permalink
Test fixes and rebase conflicts, round 1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Apr 1, 2015
1 parent 655634e commit 0304e15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/liballoc/arc.rs
Expand Up @@ -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")]
Expand Down
6 changes: 4 additions & 2 deletions src/librustdoc/clean/mod.rs
Expand Up @@ -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 {
Expand All @@ -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);
Expand Down

0 comments on commit 0304e15

Please sign in to comment.