Skip to content

Commit 0304e15

Browse files
committed
Test fixes and rebase conflicts, round 1
1 parent 655634e commit 0304e15

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/liballoc/arc.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,14 @@ pub fn strong_count<T>(this: &Arc<T>) -> usize { this.inner().strong.load(SeqCst
252252
///
253253
/// ```
254254
/// # #![feature(alloc)]
255-
/// use std::alloc::arc;
255+
/// extern crate alloc;
256+
/// # fn main() {
257+
/// use alloc::arc;
256258
///
257259
/// let mut four = arc::Arc::new(4);
258260
///
259261
/// arc::unique(&mut four).map(|num| *num = 5);
262+
/// # }
260263
/// ```
261264
#[inline]
262265
#[unstable(feature = "alloc")]

src/librustdoc/clean/mod.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,7 @@ fn resolve_type(cx: &DocContext,
23922392
};
23932393

23942394
match def {
2395-
def::DefSelfTy(..) => {
2395+
def::DefSelfTy(..) if path.segments.len() == 1 => {
23962396
return Generic(token::get_name(special_idents::type_self.name).to_string());
23972397
}
23982398
def::DefPrimTy(p) => match p {
@@ -2412,7 +2412,9 @@ fn resolve_type(cx: &DocContext,
24122412
ast::TyFloat(ast::TyF32) => return Primitive(F32),
24132413
ast::TyFloat(ast::TyF64) => return Primitive(F64),
24142414
},
2415-
def::DefTyParam(_, _, _, n) => return Generic(token::get_name(n).to_string()),
2415+
def::DefTyParam(_, _, _, n) => {
2416+
return Generic(token::get_name(n).to_string())
2417+
}
24162418
_ => {}
24172419
};
24182420
let did = register_def(&*cx, def);

0 commit comments

Comments
 (0)