diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-28 22:56:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-28 22:56:47 +0200 |
| commit | 34ef13b15b0c88bfbc89d4404c2e3ea1b24bbc38 (patch) | |
| tree | f30cf76dce459ab0702c07bfc3eecc00dc50c1c1 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 235d088412a98ed2cc55194c9268a8c6e17ed75e (diff) | |
| parent | fc63926e18794f3940098689528e67d8bf5f7cb0 (diff) | |
| download | rust-34ef13b15b0c88bfbc89d4404c2e3ea1b24bbc38.tar.gz rust-34ef13b15b0c88bfbc89d4404c2e3ea1b24bbc38.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
