From 60f86354ad95802da4c861fb8df54abf95f1917b Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 10 Mar 2011 15:14:45 -0800 Subject: rustc: Use the generic info from the item in bind thunks just as calls do. Un-XFAIL drop-parametric-closure-with-bound-box.rs. --- src/comp/middle/trans.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/comp') diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index f1f42ab5..da048951 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -3750,6 +3750,8 @@ fn trans_bind(@block_ctxt cx, @ast.expr f, bcx.build.Store(td, ty_param_slot); i += 1; } + + outgoing_fty = ginfo.item_type; } } -- cgit v1.2.3