rust/tests
Philipp Krones a07e887e24
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
2025-03-18 10:29:10 +00:00
..
test_utils
ui Improve string_to_string lint in case it is in a map call (#14396) 2025-03-18 10:29:10 +00:00
ui-cargo Merge remote-tracking branch 'upstream/master' into rustup 2025-02-27 21:51:42 +01:00
ui-internal Make annotations mandatory for internal ui tests 2025-03-12 11:32:40 +01:00
ui-toml fix: unnecessary_safety_comment FP on desugared assign 2025-03-10 12:36:37 +08:00
workspace_test Merge commit 'cb806113e0' into clippy-subtree-update 2024-08-08 19:13:50 +02:00
check-fmt.rs Merge commit 'cb806113e0' into clippy-subtree-update 2024-08-08 19:13:50 +02:00
clippy.toml
compile-test.rs Make annotations mandatory for internal ui tests 2025-03-12 11:32:40 +01:00
config-metadata.rs Merge commit 'a109190d70' into clippy-subtree-update 2024-10-18 13:44:06 +02:00
dogfood.rs Merge commit '7901289135' into clippy-subtree-update 2024-09-24 11:58:04 +02:00
headers.rs
integration.rs Merge commit 'cb806113e0' into clippy-subtree-update 2024-08-08 19:13:50 +02:00
lint_message_convention.rs Update lint_message_convention test to allow clippy "help" message 2025-03-12 11:41:26 +01:00
missing-test-files.rs Merge commit '51d49c1ae2' into clippy-subtree-update 2025-01-28 19:33:54 +01:00
versioncheck.rs rustc_tools_util: Change release channel default to stable 2025-02-13 11:10:45 +01:00
workspace.rs