Matthias Krüger 34ef13b15b
Rollup merge of #110960 - lukas-code:unused-mut, r=compiler-errors
fix false negative for `unused_mut`

fixes https://github.com/rust-lang/rust/issues/110849

We want to avoid double diagnostics for code like this, but only if an error actually occurs:
```rust
fn main() {
    let mut x: (i32, i32);
    x.0 = 1;
}
```

The first commit fixes the lint and the second one removes all the unused `mut`s it found.
2023-04-28 22:56:47 +02:00
..
2023-04-13 12:20:41 +10:00
2023-04-13 12:20:41 +10:00
2023-04-16 02:42:50 -07:00
2023-04-28 19:35:40 +02:00
2023-04-28 20:19:48 +02:00