File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
branches/stable/src/librustdoc/html Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 9a80bc853095e21a19e6c94517c4a9e46ddb091f
32
+ refs/heads/stable: 5a26a52a54ae27e5a64bc17a17aa1eebab136b91
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
35
35
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e
Original file line number Diff line number Diff line change @@ -483,9 +483,17 @@ impl fmt::Display for clean::Type {
483
483
}
484
484
clean:: Bottom => f. write_str ( "!" ) ,
485
485
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
+ }
489
497
}
490
498
clean:: BorrowedRef { lifetime : ref l, mutability, type_ : ref ty} => {
491
499
let lt = match * l {
You can’t perform that action at this time.
0 commit comments