rust/clippy_lints/src
Mateusz Gacek a21607d9b5 needless_collect: For BTreeMap and HashMap lint only is_empty
- `len` might produce different results than `count`
- they don't have `contain` but `contains_key` method
2021-05-07 08:39:00 -07:00
..
casts Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
functions Merge remote-tracking branch 'upstream/master' into rustup 2021-04-08 17:36:41 +02:00
loops needless_collect: For BTreeMap and HashMap lint only is_empty 2021-05-07 08:39:00 -07:00
methods move PATTERN_METHODS table directly into file 2021-05-03 16:25:05 +02:00
transmute Switch transmute_ptr_to_ptr to "pedantic" class. 2021-04-16 14:29:23 -07:00
types Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
unit_types Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
utils Applying PR suggestions (mostly typos) 2021-05-05 18:58:57 +02:00
absurd_extreme_comparisons.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
approx_const.rs
arithmetic.rs
as_conversions.rs
asm_syntax.rs
assertions_on_constants.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
assign_ops.rs
async_yields_async.rs
atomic_ordering.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
attrs.rs Symbol optimizations 2021-04-06 13:00:36 -05:00
await_holding_invalid.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
bit_mask.rs
blacklisted_name.rs
blocks_in_if_conditions.rs
bool_assert_comparison.rs Add lint to check for boolean comparison in assert macro calls 2021-04-19 22:15:51 +02:00
booleans.rs Eat dogfood 2021-04-16 11:39:31 -05:00
bytecount.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
cargo_common_metadata.rs
case_sensitive_file_extension_comparisons.rs
checked_conversions.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
cognitive_complexity.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
collapsible_if.rs
collapsible_match.rs Introduce is_lang_ctor 2021-04-06 15:05:00 -05:00
comparison_chain.rs use in_constant 2021-04-30 14:40:35 +09:00
consts.rs
copies.rs PR suggestions and removing utils::parent_node_is_if_expr 2021-04-14 20:11:08 +02:00
copy_iterator.rs
create_dir.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
dbg_macro.rs
default_numeric_fallback.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-04-08 17:36:41 +02:00
default.rs Disable default_trait_access in macros 2021-05-01 16:16:32 -05:00
deprecated_lints.rs Auto merge of #7059 - camsteffen:filter-map, r=flip1995 2021-04-11 18:24:23 +00:00
dereference.rs
derive.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
disallowed_method.rs
doc.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
double_comparison.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
double_parens.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
drop_forget_ref.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
duration_subsec.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
else_if_without_else.rs
empty_enum.rs
entry.rs Minor cleanup of map_entry and a few additional tests. 2021-04-15 08:25:24 -04:00
enum_clike.rs
enum_variants.rs
eq_op.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
erasing_op.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
escape.rs
eta_reduction.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
eval_order_dependence.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
excessive_bools.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
exhaustive_items.rs
exit.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
explicit_write.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
fallible_impl_from.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
float_equality_without_abs.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
float_literal.rs
floating_point_arithmetic.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
format.rs useless use of format! should return function directly 2021-04-19 17:20:21 +02:00
formatting.rs Allow allman style braces in suspicious_else_formatting 2021-04-16 15:24:46 -04:00
from_over_into.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
from_str_radix_10.rs
future_not_send.rs
get_last_with_len.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
identity_op.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
if_let_mutex.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
if_let_some_result.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
if_not_else.rs
if_then_some_else_none.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
implicit_hasher.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
implicit_return.rs Minor cleanup of implicit_return 2021-04-22 09:36:49 -04:00
implicit_saturating_sub.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
inconsistent_struct_constructor.rs Add a test for FP in macro expansion 2021-04-20 13:34:30 +09:00
indexing_slicing.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
infinite_iter.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
inherent_impl.rs
inherent_to_string.rs
inline_fn_without_body.rs
int_plus_one.rs
integer_division.rs
invalid_upcast_comparisons.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
items_after_statements.rs
large_const_arrays.rs
large_enum_variant.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
large_stack_arrays.rs
len_zero.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
let_if_seq.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
let_underscore.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
lib.rs ENABLE_METADATA_COLLECTION env-value to disable default metadata collection 2021-05-05 18:38:26 +02:00
lifetimes.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
literal_representation.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-04-08 17:36:41 +02:00
macro_use.rs Auto merge of #7022 - Jarcho:macro_use_import_ice, r=flip1995 2021-04-08 16:04:55 +00:00
main_recursion.rs
manual_async_fn.rs
manual_map.rs Auto merge of #6937 - Jarcho:map_entry_suggestion, r=giraffate 2021-04-16 13:23:23 +00:00
manual_non_exhaustive.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
manual_ok_or.rs Introduce is_lang_ctor 2021-04-06 15:05:00 -05:00
manual_strip.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
manual_unwrap_or.rs fix invalid code suggestion in manual_unwrap_or, due to macro expansion 2021-04-26 12:19:23 -07:00
map_clone.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
map_err_ignore.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
map_identity.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
map_unit_fn.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
match_on_vec_items.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
matches.rs Fix stack overflow in redundant_pattern_matching 2021-05-05 16:12:39 +02:00
mem_discriminant.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
mem_forget.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
mem_replace.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
minmax.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
misc_early.rs
misc.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
missing_const_for_fn.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
missing_doc.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-04-08 17:36:41 +02:00
missing_inline.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
modulo_arithmetic.rs add unnecessary_self_imports lint 2021-04-21 07:17:42 -07:00
multiple_crate_versions.rs
mut_key.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-04-08 17:36:41 +02:00
mut_mut.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
mut_mutex_lock.rs
mut_reference.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-04-08 17:36:41 +02:00
mutable_debug_assertion.rs
mutex_atomic.rs
needless_arbitrary_self_type.rs
needless_bool.rs PR suggestions and removing utils::parent_node_is_if_expr 2021-04-14 20:11:08 +02:00
needless_borrow.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
needless_borrowed_ref.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
needless_continue.rs
needless_for_each.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
needless_pass_by_value.rs Eat dogfood 2021-04-16 11:39:31 -05:00
needless_question_mark.rs Remove needless_question_mark MSRV 2021-04-26 16:02:11 -05:00
needless_update.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
neg_cmp_op_on_partial_ord.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
neg_multiply.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
new_without_default.rs
no_effect.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
non_copy_const.rs
non_expressive_names.rs
non_octal_unix_permissions.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
open_options.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
option_env_unwrap.rs Symbol optimizations 2021-04-06 13:00:36 -05:00
option_if_let_else.rs Introduce is_lang_ctor 2021-04-06 15:05:00 -05:00
overflow_check_conditional.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
panic_in_result_fn.rs Fix false-positive debug_assert 2021-04-10 20:54:40 +02:00
panic_unimplemented.rs Fix false-positive debug_assert in panic 2021-04-10 23:37:18 +02:00
partialeq_ne_impl.rs
pass_by_ref_or_value.rs Auto merge of #7065 - rail-rain:warn_copy_pass_by_ref, r=Manishearth 2021-04-12 04:38:42 +00:00
path_buf_push_overwrite.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
pattern_type_mismatch.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-04-08 17:36:41 +02:00
precedence.rs
ptr_eq.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
ptr_offset_with_cast.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
ptr.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
question_mark.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
ranges.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
redundant_clone.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
redundant_closure_call.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
redundant_else.rs
redundant_field_names.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
redundant_pub_crate.rs
redundant_slicing.rs
redundant_static_lifetimes.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
ref_option_ref.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
reference.rs
regex.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
repeat_once.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
returns.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
self_assignment.rs
semicolon_if_nothing_returned.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
serde_api.rs
shadow.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
single_component_path_imports.rs single_component_path_imports: ignore pub(crate) use some_macro; (fixes #7106) 2021-04-22 19:34:36 +10:00
size_of_in_element_count.rs Add invalid null pointer usage lint. 2021-04-08 22:49:48 +02:00
slow_vector_initialization.rs Metadata collection: Refining the implementation 2021-05-05 18:35:33 +02:00
stable_sort_primitive.rs
strings.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
suspicious_operation_groupings.rs Eat dogfood 2021-04-16 11:39:31 -05:00
suspicious_trait_impl.rs
swap.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
tabs_in_doc_comments.rs Auto merge of #7039 - phansch:melt-ice, r=flip1995 2021-04-14 04:53:24 +00:00
temporary_assignment.rs
to_digit_is_some.rs
to_string_in_display.rs Refactor diagnostic item methods 2021-04-13 14:10:40 -05:00
trait_bounds.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
transmuting_null.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
try_err.rs un-double return on try_err 2021-04-18 23:49:54 +02:00
undropped_manually_drops.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
unicode.rs
unit_return_expecting_ord.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-04-08 17:36:41 +02:00
unnamed_address.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
unnecessary_self_imports.rs add unnecessary_self_imports lint 2021-04-21 07:17:42 -07:00
unnecessary_sort_by.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-04-08 17:36:41 +02:00
unnecessary_wraps.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
unnested_or_patterns.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
unsafe_removed_from_name.rs
unused_io_amount.rs add detection unused_io_amount of "or", "or_else" and "ok" 2021-04-22 15:52:42 +02:00
unused_self.rs
unused_unit.rs Fix unused_unit macro false positive 2021-05-04 17:20:33 -05:00
unwrap_in_result.rs
unwrap.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
upper_case_acronyms.rs
use_self.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
useless_conversion.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
vec_init_then_push.rs
vec_resize_to_zero.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
vec.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
verbose_file_reads.rs
wildcard_dependencies.rs
wildcard_imports.rs
write.rs Eat dogfood 2021-04-16 11:39:31 -05:00
zero_div_zero.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
zero_sized_map_values.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00