about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-16 08:45:10 +0000
committerbors <bors@rust-lang.org>2020-11-16 08:45:10 +0000
commitad4f82997a94cc91723daae14889f21428e65472 (patch)
treea706cecbec048afc9ba7ca3976d88199e989f693 /compiler/rustc_mir/src/transform/coverage/debug.rs
parentdf3bb5881d27cd337011a714c74ff07fca59103c (diff)
parent5c1c50ee174f20574ddbf67b43ab0e9bb5b2c60d (diff)
downloadrust-ad4f82997a94cc91723daae14889f21428e65472.tar.gz
rust-ad4f82997a94cc91723daae14889f21428e65472.zip
Auto merge of #6119 - rsulli55:find_is_some_on_strs, r=flip1995
Add a case to `lint_search_is_some` to handle searching strings

Fixes: #6010

This adds a lint which recommends using `contains()` instead of `find()` followed by `is_some()` on strings as suggested in #6010.

This was added as an additional case to
https://github.com/rust-lang/rust-clippy/blob/5af88e3c2d8cc4fb74a0e455381669930ee3a31a/clippy_lints/src/methods/mod.rs#L3037

I would really appreciate any comments/suggestions for my code!

changelog: Added case to `lint_search_is_some` to handle searching strings
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions