Rollup merge of #95670 - TaKO8Ki:remove-unused-function-parameters, r=davidtwco
Refactor: remove unused function parameters
This commit is contained in:
commit
68329648ac
1 changed files with 3 additions and 12 deletions
|
@ -772,14 +772,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
|
||||||
Some((issued_span, span)),
|
Some((issued_span, span)),
|
||||||
);
|
);
|
||||||
|
|
||||||
self.suggest_using_local_if_applicable(
|
self.suggest_using_local_if_applicable(&mut err, location, issued_borrow, explanation);
|
||||||
&mut err,
|
|
||||||
location,
|
|
||||||
(place, span),
|
|
||||||
gen_borrow_kind,
|
|
||||||
issued_borrow,
|
|
||||||
explanation,
|
|
||||||
);
|
|
||||||
|
|
||||||
err
|
err
|
||||||
}
|
}
|
||||||
|
@ -789,8 +782,6 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
|
||||||
&self,
|
&self,
|
||||||
err: &mut Diagnostic,
|
err: &mut Diagnostic,
|
||||||
location: Location,
|
location: Location,
|
||||||
(place, span): (Place<'tcx>, Span),
|
|
||||||
gen_borrow_kind: BorrowKind,
|
|
||||||
issued_borrow: &BorrowData<'tcx>,
|
issued_borrow: &BorrowData<'tcx>,
|
||||||
explanation: BorrowExplanation,
|
explanation: BorrowExplanation,
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue