@@ -206,6 +206,7 @@ fn print_type(&ps s, &ast::ty ty) {
206
206
case ( ast:: ty_machine ( ?tm) ) { word ( s. s , common:: ty_mach_to_str ( tm) ) ; }
207
207
case ( ast:: ty_char) { word ( s. s , "char" ) ; }
208
208
case ( ast:: ty_str) { word ( s. s , "str" ) ; }
209
+ case ( ast:: ty_istr) { word ( s. s , "istr" ) ; }
209
210
case ( ast:: ty_box ( ?mt) ) { word ( s. s , "@" ) ; print_mt ( s, mt) ; }
210
211
case ( ast:: ty_vec ( ?mt) ) {
211
212
word ( s. s , "vec[" ) ;
@@ -218,6 +219,13 @@ fn print_type(&ps s, &ast::ty ty) {
218
219
print_mutability ( s, mt. mut ) ;
219
220
word ( s. s , "]" ) ;
220
221
}
222
+ case ( ast:: ty_ptr ( ?mt) ) {
223
+ word ( s. s , "*" ) ;
224
+ print_mt ( s, mt) ;
225
+ }
226
+ case ( ast:: ty_task) {
227
+ word ( s. s , "task" ) ;
228
+ }
221
229
case ( ast:: ty_port ( ?t) ) {
222
230
word ( s. s , "port[" ) ;
223
231
print_type ( s, * t) ;
@@ -228,7 +236,6 @@ fn print_type(&ps s, &ast::ty ty) {
228
236
print_type ( s, * t) ;
229
237
word ( s. s , "]" ) ;
230
238
}
231
- case ( ast:: ty_type) { word ( s. s , "type" ) ; }
232
239
case ( ast:: ty_tup ( ?elts) ) {
233
240
word ( s. s , "tup" ) ;
234
241
popen ( s) ;
@@ -249,6 +256,9 @@ fn print_type(&ps s, &ast::ty ty) {
249
256
commasep_cmnt ( s, consistent, fields, print_field, get_span) ;
250
257
pclose ( s) ;
251
258
}
259
+ case ( ast:: ty_fn ( ?proto, ?inputs, ?output, ?cf, ?constrs) ) {
260
+ print_ty_fn ( s, proto, none[ str] , inputs, output, cf, constrs) ;
261
+ }
252
262
case ( ast:: ty_obj ( ?methods) ) {
253
263
head ( s, "obj" ) ;
254
264
bopen ( s) ;
@@ -264,10 +274,15 @@ fn print_type(&ps s, &ast::ty ty) {
264
274
}
265
275
bclose ( s, ty. span ) ;
266
276
}
267
- case ( ast:: ty_fn ( ?proto, ?inputs, ?output, ?cf, ?constrs) ) {
268
- print_ty_fn ( s, proto, none[ str] , inputs, output, cf, constrs) ;
269
- }
270
277
case ( ast:: ty_path ( ?path, _) ) { print_path ( s, path) ; }
278
+ case ( ast:: ty_type) { word ( s. s , "type" ) ; }
279
+ case ( ast:: ty_constr ( ?t, ?cs) ) {
280
+ print_type ( s, * t) ;
281
+ space ( s. s ) ;
282
+ word ( s. s , ":" ) ;
283
+ space ( s. s ) ;
284
+ word ( s. s , ast_constrs_str ( cs) ) ;
285
+ }
271
286
}
272
287
end ( s) ;
273
288
}
0 commit comments