mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-24 12:54:00 +00:00
Remove needless check
This commit is contained in:
parent
0d5a8ad110
commit
6a1ec55c47
@ -49,8 +49,6 @@ pub fn trans_exchange_free_dyn<'a, 'tcx>(
|
||||
let ccx = bcx.ccx;
|
||||
let fn_ty = callee.direct_fn_type(ccx, &[]);
|
||||
|
||||
assert!(!fn_ty.ret.is_indirect() && fn_ty.ret.cast.is_none());
|
||||
|
||||
let llret = bcx.call(callee.reify(ccx), &args[..], None);
|
||||
fn_ty.apply_attrs_callsite(llret);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user