Skip to content

Commit 2f3cff6

Browse files
committed
auto merge of #20132 : alexcrichton/rust/revert-20027, r=sfackler
The introduced issue #20127 seems serious enough that we may want to enqueue a reversion for now. Feel free to beat me with a fix though @michaelwoerister!
2 parents 34d6800 + c5aaa8c commit 2f3cff6

File tree

4 files changed

+71
-302
lines changed

4 files changed

+71
-302
lines changed

src/librustc_trans/trans/controlflow.rs

-3
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ pub fn trans_for<'blk, 'tcx>(mut bcx: Block<'blk, 'tcx>,
286286
debug!("iterator type is {}, datum type is {}",
287287
ppaux::ty_to_string(bcx.tcx(), iterator_type),
288288
ppaux::ty_to_string(bcx.tcx(), iterator_datum.ty));
289-
290289
let lliterator = load_ty(bcx, iterator_datum.val, iterator_datum.ty);
291290

292291
// Create our basic blocks and set up our loop cleanups.
@@ -366,8 +365,6 @@ pub fn trans_for<'blk, 'tcx>(mut bcx: Block<'blk, 'tcx>,
366365
llpayload,
367366
binding_cleanup_scope_id);
368367

369-
debuginfo::create_for_loop_var_metadata(body_bcx_in, pat);
370-
371368
// Codegen the body.
372369
body_bcx_out = trans_block(body_bcx_out, body, expr::Ignore);
373370
body_bcx_out =

0 commit comments

Comments
 (0)