Skip to content

Commit 6a1ec55

Browse files
Remove needless check
1 parent 0d5a8ad commit 6a1ec55

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustc_trans/glue.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ pub fn trans_exchange_free_dyn<'a, 'tcx>(
4949
let ccx = bcx.ccx;
5050
let fn_ty = callee.direct_fn_type(ccx, &[]);
5151

52-
assert!(!fn_ty.ret.is_indirect() && fn_ty.ret.cast.is_none());
53-
5452
let llret = bcx.call(callee.reify(ccx), &args[..], None);
5553
fn_ty.apply_attrs_callsite(llret);
5654
}

0 commit comments

Comments
 (0)