Skip to content

Commit 60f8635

Browse files
committed
rustc: Use the generic info from the item in bind thunks just as calls do. Un-XFAIL drop-parametric-closure-with-bound-box.rs.
1 parent 185bcc6 commit 60f8635

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ TEST_XFAILS_RUSTC := $(addprefix test/run-pass/, \
448448
comm.rs \
449449
constrained-type.rs \
450450
destructor-ordering.rs \
451-
drop-parametric-closure-with-bound-box.rs \
452451
foreach-nested-2.rs \
453452
foreach-nested.rs \
454453
foreach-put-structured.rs \

src/comp/middle/trans.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3750,6 +3750,8 @@ fn trans_bind(@block_ctxt cx, @ast.expr f,
37503750
bcx.build.Store(td, ty_param_slot);
37513751
i += 1;
37523752
}
3753+
3754+
outgoing_fty = ginfo.item_type;
37533755
}
37543756
}
37553757

0 commit comments

Comments
 (0)