@@ -306,7 +306,7 @@ fn print_type(s: ps, &&ty: @ast::ty) {
306
306
pclose ( s) ;
307
307
}
308
308
ast:: ty_fn ( proto, d) {
309
- print_ty_fn ( s, proto, d, none :: < str > ) ;
309
+ print_ty_fn ( s, proto, d, none, none ) ;
310
310
}
311
311
ast:: ty_obj ( methods) {
312
312
head ( s, "obj" ) ;
@@ -519,7 +519,7 @@ fn print_ty_method(s: ps, m: ast::ty_method) {
519
519
hardbreak_if_not_bol ( s) ;
520
520
cbox ( s, indent_unit) ;
521
521
maybe_print_comment ( s, m. span . lo ) ;
522
- print_ty_fn ( s, ast:: proto_bare, m. decl , some ( m. ident ) ) ;
522
+ print_ty_fn ( s, ast:: proto_bare, m. decl , some ( m. ident ) , some ( m . tps ) ) ;
523
523
word ( s. s , ";" ) ;
524
524
end ( s) ;
525
525
}
@@ -1399,10 +1399,12 @@ fn print_mt(s: ps, mt: ast::mt) {
1399
1399
}
1400
1400
1401
1401
fn print_ty_fn ( s : ps , proto : ast:: proto ,
1402
- decl : ast:: fn_decl , id : option:: t < ast:: ident > ) {
1402
+ decl : ast:: fn_decl , id : option:: t < ast:: ident > ,
1403
+ tps : option:: t < [ ast:: ty_param ] > ) {
1403
1404
ibox ( s, indent_unit) ;
1404
1405
word ( s. s , proto_to_str ( proto) ) ;
1405
1406
alt id { some( id) { word ( s. s , " " ) ; word ( s. s , id) ; } _ { } }
1407
+ alt tps { some( tps) { print_type_params ( s, tps) ; } _ { } }
1406
1408
zerobreak ( s. s ) ;
1407
1409
popen ( s) ;
1408
1410
fn print_arg ( s : ps , input : ast:: arg ) {
0 commit comments