1
Fork 0

Rollup merge of #95670 - TaKO8Ki:remove-unused-function-parameters, r=davidtwco

Refactor: remove unused function parameters
This commit is contained in:
Dylan DPC 2022-04-05 15:56:51 +02:00 committed by GitHub
commit 68329648ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -772,14 +772,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
Some((issued_span, span)),
);
self.suggest_using_local_if_applicable(
&mut err,
location,
(place, span),
gen_borrow_kind,
issued_borrow,
explanation,
);
self.suggest_using_local_if_applicable(&mut err, location, issued_borrow, explanation);
err
}
@ -789,8 +782,6 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
&self,
err: &mut Diagnostic,
location: Location,
(place, span): (Place<'tcx>, Span),
gen_borrow_kind: BorrowKind,
issued_borrow: &BorrowData<'tcx>,
explanation: BorrowExplanation,
) {