From 60f86354ad95802da4c861fb8df54abf95f1917b Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 10 Mar 2011 15:14:45 -0800 Subject: [PATCH] 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/Makefile | 1 - src/comp/middle/trans.rs | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index f96ad040953..83dca299637 100644 --- a/src/Makefile +++ b/src/Makefile @@ -448,7 +448,6 @@ TEST_XFAILS_RUSTC := $(addprefix test/run-pass/, \ comm.rs \ constrained-type.rs \ destructor-ordering.rs \ - drop-parametric-closure-with-bound-box.rs \ foreach-nested-2.rs \ foreach-nested.rs \ foreach-put-structured.rs \ diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index f1f42ab5c42..da048951d7f 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; } }