We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a80bc8 commit 5a26a52Copy full SHA for 5a26a52
src/librustdoc/html/format.rs
@@ -483,9 +483,17 @@ impl fmt::Display for clean::Type {
483
}
484
clean::Bottom => f.write_str("!"),
485
clean::RawPointer(m, ref t) => {
486
- try!(primitive_link(f, clean::PrimitiveType::PrimitiveRawPointer,
487
- &format!("*{}", RawMutableSpace(m))));
488
- write!(f, "{}", t)
+ match **t {
+ clean::Generic(_) | clean::ResolvedPath {is_generic: true, ..} => {
+ 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
497
498
clean::BorrowedRef{ lifetime: ref l, mutability, type_: ref ty} => {
499
let lt = match *l {
0 commit comments