Remove redundant argument from subdiagnostic
method
This commit is contained in:
parent
7ba82d61eb
commit
3f34196839
38 changed files with 361 additions and 542 deletions
|
@ -4705,14 +4705,11 @@ fn hint_missing_borrow<'tcx>(
|
|||
}
|
||||
|
||||
if !to_borrow.is_empty() {
|
||||
err.subdiagnostic(infcx.dcx(), errors::AdjustSignatureBorrow::Borrow { to_borrow });
|
||||
err.subdiagnostic(errors::AdjustSignatureBorrow::Borrow { to_borrow });
|
||||
}
|
||||
|
||||
if !remove_borrow.is_empty() {
|
||||
err.subdiagnostic(
|
||||
infcx.dcx(),
|
||||
errors::AdjustSignatureBorrow::RemoveBorrow { remove_borrow },
|
||||
);
|
||||
err.subdiagnostic(errors::AdjustSignatureBorrow::RemoveBorrow { remove_borrow });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue