Skip to content

Commit 0a19215

Browse files
committed
---
yaml --- r: 274174 b: refs/heads/stable c: 5a26a52 h: refs/heads/master
1 parent ba0dba8 commit 0a19215

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 9a80bc853095e21a19e6c94517c4a9e46ddb091f
32+
refs/heads/stable: 5a26a52a54ae27e5a64bc17a17aa1eebab136b91
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/librustdoc/html/format.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,17 @@ impl fmt::Display for clean::Type {
483483
}
484484
clean::Bottom => f.write_str("!"),
485485
clean::RawPointer(m, ref t) => {
486-
try!(primitive_link(f, clean::PrimitiveType::PrimitiveRawPointer,
487-
&format!("*{}", RawMutableSpace(m))));
488-
write!(f, "{}", t)
486+
match **t {
487+
clean::Generic(_) | clean::ResolvedPath {is_generic: true, ..} => {
488+
primitive_link(f, clean::PrimitiveType::PrimitiveRawPointer,
489+
&format!("*{}{}", RawMutableSpace(m), t))
490+
}
491+
_ => {
492+
try!(primitive_link(f, clean::PrimitiveType::PrimitiveRawPointer,
493+
&format!("*{}", RawMutableSpace(m))));
494+
write!(f, "{}", t)
495+
}
496+
}
489497
}
490498
clean::BorrowedRef{ lifetime: ref l, mutability, type_: ref ty} => {
491499
let lt = match *l {

0 commit comments

Comments
 (0)