optimize un_derefer

This commit is contained in:
ouz-a
2022-07-24 14:40:43 +03:00
parent b4c3a2af7b
commit 09134982e5
7 changed files with 26 additions and 27 deletions

View File

@@ -212,7 +212,7 @@ fn do_mir_borrowck<'a, 'tcx>(
let (move_data, move_errors): (MoveData<'tcx>, Vec<(Place<'tcx>, MoveError<'tcx>)>) =
match MoveData::gather_moves(&body, tcx, param_env) {
Ok(move_data) => (move_data, Vec::new()),
Ok((_, move_data)) => (move_data, Vec::new()),
Err((move_data, move_errors)) => (move_data, move_errors),
};
let promoted_errors = promoted