rust/clippy_lints/src/methods
Marco Mastropaolo de028e2fb9 Implemented suspicious_to_owned lint to check if to_owned is called on a Cow.
This is done because `to_owned` is very similarly named to `into_owned`, but the
effect of calling those two methods is completely different. This creates
confusion (stemming from the ambiguity of the 'owned' term in the context of
`Cow`s) and might not be what the writer intended.
2022-08-26 17:41:17 -07: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
case_sensitive_file_extension_comparisons.rs Move CaseSensitiveFileExtensionComparisons into Methods lint pass 2022-08-19 10:29:55 -04:00
chars_cmp_with_unwrap.rs
chars_cmp.rs
chars_last_cmp_with_unwrap.rs
chars_last_cmp.rs
chars_next_cmp_with_unwrap.rs
chars_next_cmp.rs
clone_on_copy.rs clean up 2022-08-02 12:06:22 -05:00
clone_on_ref_ptr.rs
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
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
filetype_is_file.rs
filter_map_identity.rs
filter_map_next.rs Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
filter_map.rs Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup 2022-07-18 09:39:37 +02:00
filter_next.rs
flat_map_identity.rs
flat_map_option.rs
from_iter_instead_of_collect.rs
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
implicit_clone.rs
inefficient_to_string.rs Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup 2022-07-28 19:08:22 +02:00
inspect_for_each.rs
into_iter_on_ref.rs
is_digit_ascii_radix.rs Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
iter_cloned_collect.rs
iter_count.rs
iter_next_slice.rs Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyup 2022-06-04 13:34:07 +02:00
iter_nth_zero.rs
iter_nth.rs
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
iterator_step_by_zero.rs
manual_ok_or.rs Move ManualOkOr into Methods lint pass 2022-08-19 10:31:41 -04:00
manual_saturating_arithmetic.rs
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
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
map_unwrap_or.rs Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
mod.rs Implemented suspicious_to_owned lint to check if to_owned is called on a Cow. 2022-08-26 17:41:17 -07:00
mut_mutex_lock.rs Move MutMutexLock into Methods lint pass 2022-08-19 10:32:16 -04:00
needless_option_as_deref.rs
needless_option_take.rs
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
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
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
single_char_insert_string.rs
single_char_pattern.rs
single_char_push_string.rs
skip_while_next.rs
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
suspicious_map.rs Avoid ICE when fetching LocalDefId 2022-07-29 18:26:10 -04:00
suspicious_splitn.rs
suspicious_to_owned.rs Implemented suspicious_to_owned lint to check if to_owned is called on a Cow. 2022-08-26 17:41:17 -07: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
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
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
utils.rs
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
zst_offset.rs