File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import syntax::print::pp;
11
11
import syntax:: print:: pprust;
12
12
import syntax:: print:: pprust:: path_to_str;
13
13
import syntax:: print:: pprust:: constr_args_to_str;
14
+ import syntax:: print:: pprust:: proto_to_str;
14
15
import pp:: word;
15
16
import pp:: eof;
16
17
import pp:: zerobreak;
@@ -49,11 +50,7 @@ fn ty_to_str(&ctxt cx, &t typ) -> str {
49
50
fn fn_to_str ( & ctxt cx, ast:: proto proto, option:: t[ ast:: ident ] ident ,
50
51
& arg[ ] inputs, t output, ast:: controlflow cf,
51
52
& ( @constr) [ ] constrs ) -> str {
52
- auto s;
53
- alt ( proto) {
54
- case ( ast:: proto_iter) { s = "iter" ; }
55
- case ( ast:: proto_fn) { s = "fn" ; }
56
- }
53
+ auto s = proto_to_str ( proto) ;
57
54
alt ( ident) { case ( some ( ?i) ) { s += " " ; s += i; } case ( _) { } }
58
55
s += "(" ;
59
56
auto strs = [ ] ;
You can’t perform that action at this time.
0 commit comments