Skip to content

Commit 59e55a9

Browse files
committed
---
yaml --- r: 66311 b: refs/heads/master c: ffc8c0b h: refs/heads/master i: 66309: b292942 66307: aa1aae4 66303: 19f2cca v: v3
1 parent 937b1fb commit 59e55a9

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f8c892ab966e37c7fb8936ace6c7d40c8642f6ab
2+
refs/heads/master: ffc8c0ba210630121c58290b1652fea66e0d1da8
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/librustc/middle/kind.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,6 @@ fn with_appropriate_checker(cx: Context, id: node_id,
169169
let id = ast_util::def_id_of_def(fv.def).node;
170170
let var_t = ty::node_id_to_type(cx.tcx, id);
171171

172-
// FIXME(#3569): Once closure capabilities are restricted based on their
173-
// incoming bounds, make this check conditional based on the bounds.
174-
if !check_owned(cx, var_t, fv.span) { return; }
175-
176172
// check that only immutable variables are implicitly copied in
177173
check_imm_free_var(cx, fv.def, fv.span);
178174

@@ -184,10 +180,6 @@ fn with_appropriate_checker(cx: Context, id: node_id,
184180
let id = ast_util::def_id_of_def(fv.def).node;
185181
let var_t = ty::node_id_to_type(cx.tcx, id);
186182

187-
// FIXME(#3569): Once closure capabilities are restricted based on their
188-
// incoming bounds, make this check conditional based on the bounds.
189-
if !check_durable(cx.tcx, var_t, fv.span) { return; }
190-
191183
// check that only immutable variables are implicitly copied in
192184
check_imm_free_var(cx, fv.def, fv.span);
193185

0 commit comments

Comments
 (0)