We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12f86e6 commit 20bd927Copy full SHA for 20bd927
src/comp/middle/trans.rs
@@ -1293,6 +1293,20 @@ fn simplify_type(&@crate_ctxt ccx, &ty::t typ) -> ty::t {
1293
case (ty::ty_vec(_)) {
1294
ret ty::mk_imm_vec(ccx.tcx, ty::mk_nil(ccx.tcx));
1295
}
1296
+ case (ty::ty_fn(_,_,_,_)) {
1297
+ ret ty::mk_imm_tup(ccx.tcx,
1298
+ [ty::mk_imm_box(ccx.tcx,
1299
+ ty::mk_nil(ccx.tcx)),
1300
+ ty::mk_imm_box(ccx.tcx,
1301
+ ty::mk_nil(ccx.tcx))]);
1302
+ }
1303
+ case (ty::ty_obj(_)) {
1304
1305
1306
1307
1308
1309
1310
case (_) { ret typ; }
1311
1312
0 commit comments