Skip to content

Commit f97b124

Browse files
nikomatsakisJorge Aparicio
authored and
Jorge Aparicio
committed
Fix ICE caused by forgotten bcx
1 parent 79af277 commit f97b124

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/librustc_trans/trans/callee.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn trans<'blk, 'tcx>(bcx: Block<'blk, 'tcx>, expr: &ast::Expr)
100100

101101
fn datum_callee<'blk, 'tcx>(bcx: Block<'blk, 'tcx>, expr: &ast::Expr)
102102
-> Callee<'blk, 'tcx> {
103-
let DatumBlock { datum, .. } = expr::trans(bcx, expr);
103+
let DatumBlock { mut bcx, datum, .. } = expr::trans(bcx, expr);
104104
match datum.ty.sty {
105105
ty::ty_bare_fn(..) => {
106106
let llval = datum.to_llscalarish(bcx);

src/test/run-pass/call-closure-from-overloaded-op.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-test FIXME(japaric) this ICEs
12-
1311
fn foo() -> int { 22 }
1412

1513
pub fn main() {

0 commit comments

Comments
 (0)