about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authordswij <dharmasw@outlook.com>2025-02-22 15:28:15 +0000
committerGitHub <noreply@github.com>2025-02-22 15:28:15 +0000
commitd92da0fb322e833e481a4c50f0f73b7b27829546 (patch)
tree5c801b6494c2176385122b075779a6b6f0672bf0 /compiler/rustc_codegen_llvm/src
parentd5488b3b631826269e2e6ea5f67a31b7d3fa7d0c (diff)
parent44aa75fd2aa94850103215c8e67b0d0baa24b6b7 (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions