diff options
| author | dswij <dharmasw@outlook.com> | 2025-02-22 15:28:15 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-22 15:28:15 +0000 |
| commit | d92da0fb322e833e481a4c50f0f73b7b27829546 (patch) | |
| tree | 5c801b6494c2176385122b075779a6b6f0672bf0 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | d5488b3b631826269e2e6ea5f67a31b7d3fa7d0c (diff) | |
| parent | 44aa75fd2aa94850103215c8e67b0d0baa24b6b7 (diff) | |
| download | rust-d92da0fb322e833e481a4c50f0f73b7b27829546.tar.gz rust-d92da0fb322e833e481a4c50f0f73b7b27829546.zip | |
`manual_slice_fill`: do not initialize from the iterator (#14191)
```rust
let mut tmp = vec![1, 2, 3];
for b in &mut tmp {
*b = !*b;
}
```
must not suggest the invalid `tmp.fill(!*b)`.
In addition, there is another commit which cleans up two function calls
with no effect.
Fix #14189
changelog: [`manual_slice_fill`]: ensure that the initialization
expression doesn't reference the iterator
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
