File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 416d9bc0fd20c87dc4ed96e2018156e65fea1e2b
2
+ refs/heads/master: 7e2f2058660ecf0819eee09319d314b3343a03fc
Original file line number Diff line number Diff line change @@ -225,6 +225,13 @@ fn ast_ty_to_ty(ty_getter getter, &@ast.ty ast_ty) -> @ty {
225
225
case ( ast. ty_str ) { sty = ty_str; }
226
226
case ( ast. ty_box ( ?t) ) { sty = ty_box ( ast_ty_to_ty ( getter, t) ) ; }
227
227
case ( ast. ty_vec ( ?t) ) { sty = ty_vec ( ast_ty_to_ty ( getter, t) ) ; }
228
+ case ( ast. ty_tup ( ?fields) ) {
229
+ let vec[ tup( bool, @ty) ] flds = vec ( ) ;
230
+ for ( tup( bool, @ast. ty) field in fields) {
231
+ flds += tup ( field. _0 , ast_ty_to_ty ( getter, field. _1 ) ) ;
232
+ }
233
+ sty = ty_tup ( flds) ;
234
+ }
228
235
229
236
case ( ast. ty_fn ( ?inputs, ?output) ) {
230
237
auto f = bind ast_arg_to_arg ( getter, _) ;
@@ -244,6 +251,10 @@ fn ast_ty_to_ty(ty_getter getter, &@ast.ty ast_ty) -> @ty {
244
251
sty = getter ( def_id) . struct ;
245
252
cname = some ( path_to_str ( path) ) ;
246
253
}
254
+
255
+ case ( _) {
256
+ fail;
257
+ }
247
258
}
248
259
249
260
ret @rec( struct=sty, cname=cname) ;
You can’t perform that action at this time.
0 commit comments