bors
c71f0bebd2
Auto merge of #13334 - nyurik:ascii-str-eq, r=xFrednet
Add manual_ignore_cast_cmp lint
```rust
// bad
fn compare(a: &str, b: &str) -> bool {
a.to_ascii_lowercase() == b.to_ascii_lowercase()
|| a.to_ascii_lowercase() == "abc"
}
// good
fn compare(a: &str, b: &str) -> bool {
a.eq_ignore_ascii_case(b)
|| a.eq_ignore_ascii_case("abc")
}
```
- [x] Followed [lint naming conventions][lint_naming]
- [x] Added passing UI tests (including committed `.stderr` file)
- [x] `cargo test` passes locally
- [x] Executed `cargo dev update_lints`
- [x] Added lint documentation
- [x] Run `cargo dev fmt`
changelog: New lint: [`manual_ignore_case_cmp`] `perf`
[#13334](https://github.com/rust-lang/rust-clippy/pull/13334)
Closes #13204
2024-10-13 07:34:38 +00:00
..
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-10-03 14:47:50 +02:00
2024-09-24 11:58:04 +02:00
2024-09-29 15:58:44 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-25 13:52:12 -04:00
2024-09-15 09:51:32 +02:00
2024-09-28 11:57:34 -04:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-23 15:39:02 +00:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-23 15:39:02 +00:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-23 15:39:02 +00:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-10-10 08:05:41 +00:00
2024-09-14 16:12:00 +05:30
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:48:15 -04:00
2024-09-25 13:48:15 -04:00
2024-09-24 11:58:04 +02:00
2024-09-23 15:39:02 +00:00
2024-09-23 15:39:02 +00:00
2024-09-23 15:39:02 +00:00
2024-09-23 15:39:02 +00:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-10-10 19:10:04 +02:00
2024-10-10 19:10:04 +02:00
2024-10-10 19:10:04 +02:00
2024-09-24 11:58:04 +02:00
2024-10-06 19:19:27 +02:00
2024-10-06 19:19:27 +02:00
2024-09-24 15:17:52 -04:00
2024-09-24 15:17:52 -04:00
2024-09-24 15:17:52 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-10-04 19:07:40 +01:00
2024-10-04 19:07:40 +01:00
2024-10-10 22:01:46 +01:00
2024-10-10 22:01:46 +01:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-10-10 19:10:04 +02:00
2024-09-24 11:58:04 +02:00
2024-10-10 19:10:04 +02:00
2024-10-10 18:08:40 +02:00
2024-10-10 18:08:40 +02:00
2024-10-10 18:08:40 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-10-01 01:11:05 -04:00
2024-10-01 01:11:05 -04:00
2024-10-01 01:11:05 -04:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-23 12:25:01 -07:00
2024-09-23 12:25:01 -07:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-10-03 21:27:05 +00:00
2024-10-01 22:19:42 +02:00
2024-10-01 22:19:42 +02:00
2024-10-01 22:19:42 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 17:56:51 -04:00
2024-09-25 17:56:51 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-10-07 18:29:24 +02:00
2024-10-07 18:29:24 +02:00
2024-10-07 18:29:24 +02:00
2024-10-07 18:29:24 +02:00
2024-10-07 18:29:24 +02:00
2024-10-07 18:29:24 +02:00
2024-10-10 09:17:20 +00:00
2024-10-10 09:17:20 +00:00
2024-09-26 17:44:59 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-30 03:36:41 +08:00
2024-09-30 03:36:41 +08:00
2024-09-30 03:36:41 +08:00
2024-09-30 03:36:41 +08:00
2024-09-30 03:36:41 +08:00
2024-10-10 08:05:41 +00:00
2024-10-10 08:05:41 +00:00
2024-10-10 08:05:41 +00:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-10-05 17:10:21 +01:00
2024-10-05 17:10:21 +01:00
2024-09-24 11:58:04 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-10-03 15:49:37 +00:00
2024-10-03 15:49:37 +00:00
2024-10-03 15:49:37 +00:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-27 21:44:19 +00:00
2024-09-27 21:44:19 +00:00
2024-09-23 15:39:02 +00:00
2024-09-23 15:39:02 +00:00
2024-09-23 15:39:02 +00:00
2024-09-23 15:39:02 +00:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-10-10 08:05:41 +00:00
2024-10-10 08:05:41 +00:00
2024-10-10 08:05:41 +00:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:12:19 -05:00
2024-09-25 13:12:19 -05:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-09-24 11:58:04 +02:00
2024-10-01 19:21:30 +02:00
2024-09-24 11:58:04 +02:00