diff options
| author | Philipp Krones <hello@philkrones.com> | 2025-03-18 10:29:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-18 10:29:10 +0000 |
| commit | a07e887e24ed8f0934b3e839a9512ab0686475a0 (patch) | |
| tree | 2315493bbd23305a073b82a1afcaf060fd9ea017 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 48005578576c7820590f680b92f5f6213b9165f5 (diff) | |
| parent | 269b913bfd7da288ca3a1658833686b4b3c518ee (diff) | |
| download | rust-a07e887e24ed8f0934b3e839a9512ab0686475a0.tar.gz rust-a07e887e24ed8f0934b3e839a9512ab0686475a0.zip | |
Improve `string_to_string` lint in case it is in a map call (#14396)
Fixes https://github.com/rust-lang/rust-clippy/issues/14175. There are two "big" cases to handle: `.map(|x| x.to_string())` and `.map(String::to_string)`. If the closure has more than one expression, we should not suggest `.cloned()`. changelog: Improve `string_to_string` lint in case it is in a map call r? @samueltardieu
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
