Commit 1fe6383
authored
add
*[View all
comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust-clippy/pull/16582)*
Add a lint to detect when the recently added Vec::pop_if,
VecDeque::pop_front_if, and VecDeque::pop_back_if are manually
implemented.
changelog: add [`manual_pop_if`] lintmanual_pop_if lint (rust-lang#16582)File tree
9 files changed
+1211
-0
lines changed- clippy_lints/src
- clippy_utils/src
- tests/ui
9 files changed
+1211
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6801 | 6801 | | |
6802 | 6802 | | |
6803 | 6803 | | |
| 6804 | + | |
6804 | 6805 | | |
6805 | 6806 | | |
6806 | 6807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
| |||
864 | 865 | | |
865 | 866 | | |
866 | 867 | | |
| 868 | + | |
867 | 869 | | |
868 | 870 | | |
869 | 871 | | |
| |||
0 commit comments