1
Fork 0

Rollup merge of #120917 - chenyukang:yukang-dead-parameters, r=compiler-errors

Remove a bunch of dead parameters in functions

Found this kind of issue when working on https://github.com/rust-lang/rust/pull/119650
I wrote a trivial toy lint and manual review to find these.
This commit is contained in:
Matthias Krüger 2024-02-12 18:04:08 +01:00 committed by GitHub
commit ebe36ac815
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 30 additions and 71 deletions

View file

@ -3018,7 +3018,6 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
/// assignment to `x.f`).
pub(crate) fn report_illegal_reassignment(
&mut self,
_location: Location,
(place, span): (Place<'tcx>, Span),
assigned_span: Span,
err_place: Place<'tcx>,