Skip to content

Commit a11f63e

Browse files
committed
---
yaml --- r: 196078 b: refs/heads/beta c: 0304e15 h: refs/heads/master v: v3
1 parent 1ecce0d commit a11f63e

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3030
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3131
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32-
refs/heads/beta: 655634e6ab00707ef98034dcfb32000cbfa7a01c
32+
refs/heads/beta: 0304e15e5c39654346e827c2bb25ca41ed310c86
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3535
refs/heads/tmp: 9de34a84bb300bab1bf0227f577331620cd60511

branches/beta/src/liballoc/arc.rs

Lines changed: 4 additions & 1 deletion
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")]

branches/beta/src/librustdoc/clean/mod.rs

Lines changed: 4 additions & 2 deletions
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)