File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ use visit_ast;
40
40
41
41
/// A stable identifier to the particular version of JSON output.
42
42
/// Increment this when the `Crate` and related structures change.
43
- pub static SCHEMA_VERSION : & ' static str = "0.8.2 " ;
43
+ pub static SCHEMA_VERSION : & ' static str = "0.8.3 " ;
44
44
45
45
mod inline;
46
46
@@ -449,6 +449,7 @@ pub struct TyParam {
449
449
pub name : String ,
450
450
pub did : ast:: DefId ,
451
451
pub bounds : Vec < TyParamBound > ,
452
+ pub default : Option < Type >
452
453
}
453
454
454
455
impl Clean < TyParam > for ast:: TyParam {
@@ -457,6 +458,7 @@ impl Clean<TyParam> for ast::TyParam {
457
458
name : self . ident . clean ( ) ,
458
459
did : ast:: DefId { krate : ast:: LOCAL_CRATE , node : self . id } ,
459
460
bounds : self . bounds . clean ( ) . move_iter ( ) . collect ( ) ,
461
+ default : self . default . clean ( )
460
462
}
461
463
}
462
464
}
@@ -470,6 +472,7 @@ impl Clean<TyParam> for ty::TypeParameterDef {
470
472
name : self . ident . clean ( ) ,
471
473
did : self . def_id ,
472
474
bounds : self . bounds . clean ( ) ,
475
+ default : self . default . clean ( )
473
476
}
474
477
}
475
478
}
Original file line number Diff line number Diff line change @@ -82,6 +82,11 @@ impl fmt::Show for clean::Generics {
82
82
try!( write ! ( f, "{}" , * bound) ) ;
83
83
}
84
84
}
85
+
86
+ match tp. default {
87
+ Some ( ref ty) => { try!( write ! ( f, " = {}" , ty) ) ; } ,
88
+ None => { }
89
+ } ;
85
90
}
86
91
}
87
92
try!( f. write ( ">" . as_bytes ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments