about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Blum <bblum@andrew.cmu.edu>2013-06-20 14:29:19 -0400
committerBen Blum <bblum@andrew.cmu.edu>2013-06-26 18:14:43 -0400
commitffc8c0ba210630121c58290b1652fea66e0d1da8 (patch)
tree4463009a03755259e9692d7c92aac73c40d9aa04
parentf8c892ab966e37c7fb8936ace6c7d40c8642f6ab (diff)
downloadrust-ffc8c0ba210630121c58290b1652fea66e0d1da8.tar.gz
rust-ffc8c0ba210630121c58290b1652fea66e0d1da8.zip
Looser restrictions on what can be captured in unbounded heap closures.
-rw-r--r--src/librustc/middle/kind.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/librustc/middle/kind.rs b/src/librustc/middle/kind.rs
index 4dde982c34c..a1f595fc896 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);