about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2025-03-18 10:29:10 +0000
committerGitHub <noreply@github.com>2025-03-18 10:29:10 +0000
commita07e887e24ed8f0934b3e839a9512ab0686475a0 (patch)
tree2315493bbd23305a073b82a1afcaf060fd9ea017 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent48005578576c7820590f680b92f5f6213b9165f5 (diff)
parent269b913bfd7da288ca3a1658833686b4b3c518ee (diff)
downloadrust-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