rust-clippy/clippy_lints/src/methods
Michael Wright a0afbdfbec Replace contains_ty(..) with Ty::contains(..)
This removes some code we don't need and the method syntax is
also more readable IMO.
2022-08-24 08:11:29 +02:00
..
bind_instead_of_map.rs Fix clippy build 2022-07-12 21:00:14 +04:00
bytecount.rs Move ByteCount into Methods lint pass 2022-08-19 10:28:59 -04:00
bytes_count_to_len.rs Move BytesCountToLen into Methods lint pass 2022-08-19 10:28:59 -04:00
bytes_nth.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
case_sensitive_file_extension_comparisons.rs Move CaseSensitiveFileExtensionComparisons into Methods lint pass 2022-08-19 10:29:55 -04:00
chars_cmp.rs rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
chars_cmp_with_unwrap.rs Merge commit '57b3c4b90f4346b3990c1be387c3b3ca7b78412c' into clippyup 2022-02-10 18:40:06 +01:00
chars_last_cmp.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
chars_last_cmp_with_unwrap.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
chars_next_cmp.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
chars_next_cmp_with_unwrap.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
clone_on_copy.rs clean up 2022-08-02 12:06:22 -05:00
clone_on_ref_ptr.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
cloned_instead_of_copied.rs Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
collapsible_str_replace.rs Simplify lint logic and address code review comments 2022-08-20 12:09:09 +02:00
err_expect.rs Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
expect_fun_call.rs Remember mutability in DefKind::Static. 2022-03-29 18:50:52 +02:00
expect_used.rs unwrap_used and expect_used: trigger on uses of their _err variants 2022-08-16 18:31:57 +02:00
extend_with_drain.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
filetype_is_file.rs Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup 2021-04-08 17:50:13 +02:00
filter_map.rs Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup 2022-07-18 09:39:37 +02:00
filter_map_identity.rs Merge commit '61eb38aeda6cb54b93b872bf503d70084c4d621c' into clippyup 2021-07-01 18:17:38 +02:00
filter_map_next.rs Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
filter_next.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
flat_map_identity.rs Merge commit '61eb38aeda6cb54b93b872bf503d70084c4d621c' into clippyup 2021-07-01 18:17:38 +02:00
flat_map_option.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
from_iter_instead_of_collect.rs Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup 2022-01-13 13:18:19 +01:00
get_first.rs Move GetFirst into Methods lint pass 2022-08-19 10:29:55 -04:00
get_last_with_len.rs Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyup 2022-06-04 13:34:07 +02:00
get_unwrap.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
implicit_clone.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
inefficient_to_string.rs Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup 2022-07-28 19:08:22 +02:00
inspect_for_each.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
into_iter_on_ref.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
is_digit_ascii_radix.rs Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
iter_cloned_collect.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
iter_count.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
iter_next_slice.rs Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyup 2022-06-04 13:34:07 +02:00
iter_nth.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
iter_nth_zero.rs Merge commit '3ae8faff4d46ad92f194c2a4b941c3152a701b31' into clippyup 2021-06-03 08:41:37 +02:00
iter_on_single_or_empty_collections.rs Rename new lints to iter_on_empty_collections and iter_on_single_items 2022-08-08 21:05:27 +02:00
iter_overeager_cloned.rs Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup 2022-06-16 17:39:06 +02:00
iter_skip_next.rs Factor out hir::Node::Binding 2022-07-01 10:04:19 -05:00
iter_with_drain.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
iterator_step_by_zero.rs Merge commit '3ae8faff4d46ad92f194c2a4b941c3152a701b31' into clippyup 2021-06-03 08:41:37 +02:00
manual_ok_or.rs Move ManualOkOr into Methods lint pass 2022-08-19 10:31:41 -04:00
manual_saturating_arithmetic.rs Merge commit '57b3c4b90f4346b3990c1be387c3b3ca7b78412c' into clippyup 2022-02-10 18:40:06 +01:00
manual_str_repeat.rs Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup 2022-07-18 09:39:37 +02:00
map_clone.rs Move MapClone into Methods lint pass 2022-08-19 10:31:41 -04:00
map_collect_result_unit.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
map_err_ignore.rs Move MapErrIgnore into Methods lint pass 2022-08-19 10:32:15 -04:00
map_flatten.rs Merge commit '0cb0f7636851f9fcc57085cf80197a2ef6db098f' into clippyup 2022-06-30 10:50:09 +02:00
map_identity.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
map_unwrap_or.rs Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
mod.rs Replace contains_ty(..) with Ty::contains(..) 2022-08-24 08:11:29 +02:00
mut_mutex_lock.rs Move MutMutexLock into Methods lint pass 2022-08-19 10:32:16 -04:00
needless_option_as_deref.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
needless_option_take.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
no_effect_replace.rs Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyup 2022-06-04 13:34:07 +02:00
obfuscated_if_else.rs Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup 2022-07-28 19:08:22 +02:00
ok_expect.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
open_options.rs Move OpenOptions into Methods lint pass 2022-08-19 10:32:16 -04:00
option_as_ref_deref.rs Fix clippy build 2022-07-12 21:00:14 +04:00
option_map_or_none.rs Fix clippy build 2022-07-12 21:00:14 +04:00
option_map_unwrap_or.rs Update all tests to comply with clippy::manual_empty_string_creations 2022-08-14 12:53:15 -03:00
or_fun_call.rs Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup 2022-07-18 09:39:37 +02:00
or_then_unwrap.rs Merge commit 'd0cf3481a84e3aa68c2f185c460e282af36ebc42' into clippyup 2022-03-24 14:50:04 +01:00
path_buf_push_overwrite.rs Move PathBufPushOverwrite into Methods lint group 2022-08-19 10:32:31 -04:00
range_zip_with_len.rs Move range_zip_with_len into Methods lint pass 2022-08-19 10:54:55 -04:00
repeat_once.rs Move RepeatOnce into Methods lint pass 2022-08-19 10:54:55 -04:00
search_is_some.rs Fix clippy build 2022-07-12 21:00:14 +04:00
single_char_add_str.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
single_char_insert_string.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
single_char_pattern.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
single_char_push_string.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
skip_while_next.rs Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup 2021-04-08 17:50:13 +02:00
stable_sort_primitive.rs Move StableSortPrimitive to Methods lint pass 2022-08-19 10:54:55 -04:00
str_splitn.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
string_extend_chars.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
suspicious_map.rs Avoid ICE when fetching LocalDefId 2022-07-29 18:26:10 -04:00
suspicious_splitn.rs get clippy to compile again 2022-03-30 11:23:58 +02:00
uninit_assumed_init.rs Refactor FormatArgsExpn 2022-08-19 15:35:26 +00:00
unit_hash.rs Move UnitHash into Methods lint pass 2022-08-19 10:54:55 -04:00
unnecessary_filter_map.rs Fix clippy build 2022-07-12 21:00:14 +04:00
unnecessary_fold.rs Fix clippy build 2022-07-12 21:00:14 +04:00
unnecessary_iter_cloned.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
unnecessary_join.rs Merge commit 'd0cf3481a84e3aa68c2f185c460e282af36ebc42' into clippyup 2022-03-24 14:50:04 +01:00
unnecessary_lazy_eval.rs Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup 2022-07-18 09:39:37 +02:00
unnecessary_sort_by.rs Move UnnecessarySortBy into Methods lint pass 2022-08-19 10:54:55 -04:00
unnecessary_to_owned.rs Replace contains_ty(..) with Ty::contains(..) 2022-08-24 08:11:29 +02:00
unwrap_or_else_default.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
unwrap_used.rs unwrap_used: Fix error message for unwrap_err when expect_used is allowed 2022-08-17 18:58:17 +02:00
useless_asref.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
utils.rs Merge commit 'dc5423ad448877e33cca28db2f1445c9c4473c75' into clippyup 2022-03-14 12:02:53 +01:00
vec_resize_to_zero.rs Move VecResizeToZero into Methods lint pass 2022-08-19 10:54:55 -04:00
verbose_file_reads.rs Move VerboseFileReads into Methods lint pass 2022-08-19 10:54:55 -04:00
wrong_self_convention.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
zst_offset.rs Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00