Skip to content

Commit 41a4175

Browse files
committed
Fix for mutable_borrow_reservation_conflict future compatibility lint
1 parent 42349e9 commit 41a4175

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/abi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,8 @@ pub fn codegen_call_inner<'a, 'tcx: 'a>(
692692
PassMode::NoPass => {}
693693
PassMode::ByVal(_) => {
694694
if let Some(ret_place) = ret_place {
695-
let results = fx.bcx.inst_results(call_inst);
696-
ret_place.write_cvalue(fx, CValue::ByVal(results[0], ret_layout));
695+
let ret_val = fx.bcx.inst_results(call_inst)[0];
696+
ret_place.write_cvalue(fx, CValue::ByVal(ret_val, ret_layout));
697697
}
698698
}
699699
PassMode::ByRef => {}

0 commit comments

Comments
 (0)