From ffc8c0ba210630121c58290b1652fea66e0d1da8 Mon Sep 17 00:00:00 2001 From: Ben Blum Date: Thu, 20 Jun 2013 14:29:19 -0400 Subject: [PATCH] Looser restrictions on what can be captured in unbounded heap closures. --- src/librustc/middle/kind.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/librustc/middle/kind.rs b/src/librustc/middle/kind.rs index 4dde982c34ca..a1f595fc8969 100644 --- a/src/librustc/middle/kind.rs +++ b/src/librustc/middle/kind.rs @@ -169,10 +169,6 @@ fn with_appropriate_checker(cx: Context, id: node_id, let id = ast_util::def_id_of_def(fv.def).node; let var_t = ty::node_id_to_type(cx.tcx, id); - // FIXME(#3569): Once closure capabilities are restricted based on their - // incoming bounds, make this check conditional based on the bounds. - if !check_owned(cx, var_t, fv.span) { return; } - // check that only immutable variables are implicitly copied in check_imm_free_var(cx, fv.def, fv.span); @@ -184,10 +180,6 @@ fn with_appropriate_checker(cx: Context, id: node_id, let id = ast_util::def_id_of_def(fv.def).node; let var_t = ty::node_id_to_type(cx.tcx, id); - // FIXME(#3569): Once closure capabilities are restricted based on their - // incoming bounds, make this check conditional based on the bounds. - if !check_durable(cx.tcx, var_t, fv.span) { return; } - // check that only immutable variables are implicitly copied in check_imm_free_var(cx, fv.def, fv.span);