]> git.lizzy.rs Git - rust.git/tree - clippy_lints/src/
Auto merge of #8901 - Jarcho:sharing_code, r=dswij
[rust.git] / clippy_lints / src /
drwxr-xr-x   ..
-rw-r--r-- 6980 absurd_extreme_comparisons.rs
-rw-r--r-- 3508 almost_complete_letter_range.rs
-rw-r--r-- 4773 approx_const.rs
-rw-r--r-- 2286 as_conversions.rs
-rw-r--r-- 2344 as_underscore.rs
-rw-r--r-- 3692 asm_syntax.rs
-rw-r--r-- 2614 assertions_on_constants.rs
-rw-r--r-- 8736 assign_ops.rs
-rw-r--r-- 3362 async_yields_async.rs
-rw-r--r-- 25331 attrs.rs
-rw-r--r-- 10170 await_holding_invalid.rs
-rw-r--r-- 12032 bit_mask.rs
-rw-r--r-- 2215 blacklisted_name.rs
-rw-r--r-- 6369 blocks_in_if_conditions.rs
-rw-r--r-- 3650 bool_assert_comparison.rs
-rw-r--r-- 18065 booleans.rs
-rw-r--r-- 2951 borrow_as_ptr.rs
-rw-r--r-- 4525 borrow_deref_ref.rs
-rw-r--r-- 4174 bytecount.rs
-rw-r--r-- 2622 bytes_count_to_len.rs
drwxr-xr-x - cargo
-rw-r--r-- 3106 case_sensitive_file_extension_comparisons.rs
drwxr-xr-x - casts
-rw-r--r-- 11607 checked_conversions.rs
-rw-r--r-- 5255 cognitive_complexity.rs
-rw-r--r-- 6260 collapsible_if.rs
-rw-r--r-- 4293 comparison_chain.rs
-rw-r--r-- 18248 copies.rs
-rw-r--r-- 1862 copy_iterator.rs
-rw-r--r-- 4028 crate_in_macro_def.rs
-rw-r--r-- 1879 create_dir.rs
-rw-r--r-- 3306 dbg_macro.rs
-rw-r--r-- 13276 default.rs
-rw-r--r-- 8837 default_numeric_fallback.rs
-rw-r--r-- 3483 default_union_representation.rs
-rw-r--r-- 7620 deprecated_lints.rs
-rw-r--r-- 28397 dereference.rs
-rw-r--r-- 4555 derivable_impls.rs
-rw-r--r-- 18510 derive.rs
-rw-r--r-- 3943 disallowed_methods.rs
-rw-r--r-- 4495 disallowed_script_idents.rs
-rw-r--r-- 4605 disallowed_types.rs
-rw-r--r-- 31317 doc.rs
-rw-r--r-- 1799 doc_link_with_quotes.rs
-rw-r--r-- 3467 double_comparison.rs
-rw-r--r-- 2152 double_parens.rs
-rw-r--r-- 9233 drop_forget_ref.rs
-rw-r--r-- 3116 duplicate_mod.rs
-rw-r--r-- 2953 duration_subsec.rs
-rw-r--r-- 2050 else_if_without_else.rs
-rw-r--r-- 2304 empty_drop.rs
-rw-r--r-- 2251 empty_enum.rs
-rw-r--r-- 2943 empty_structs_with_brackets.rs
-rw-r--r-- 25636 entry.rs
-rw-r--r-- 3212 enum_clike.rs
-rw-r--r-- 9728 enum_variants.rs
-rw-r--r-- 14472 eq_op.rs
-rw-r--r-- 3793 equatable_if_let.rs
-rw-r--r-- 2280 erasing_op.rs
-rw-r--r-- 6756 escape.rs
-rw-r--r-- 9483 eta_reduction.rs
-rw-r--r-- 5200 excessive_bools.rs
-rw-r--r-- 3707 exhaustive_items.rs
-rw-r--r-- 1681 exit.rs
-rw-r--r-- 5619 explicit_write.rs
-rw-r--r-- 4609 fallible_impl_from.rs
-rw-r--r-- 4187 float_equality_without_abs.rs
-rw-r--r-- 6335 float_literal.rs
-rw-r--r-- 25723 floating_point_arithmetic.rs
-rw-r--r-- 5572 format.rs
-rw-r--r-- 7420 format_args.rs
-rw-r--r-- 8856 format_impl.rs
-rw-r--r-- 2614 format_push_string.rs
-rw-r--r-- 12323 formatting.rs
-rw-r--r-- 2504 from_over_into.rs
-rw-r--r-- 3769 from_str_radix_10.rs
drwxr-xr-x - functions
-rw-r--r-- 4869 future_not_send.rs
-rw-r--r-- 2310 get_first.rs
-rw-r--r-- 6458 identity_op.rs
-rw-r--r-- 4343 if_let_mutex.rs
-rw-r--r-- 2928 if_not_else.rs
-rw-r--r-- 4037 if_then_some_else_none.rs
-rw-r--r-- 14393 implicit_hasher.rs
-rw-r--r-- 8173 implicit_return.rs
-rw-r--r-- 6794 implicit_saturating_sub.rs
-rw-r--r-- 4533 inconsistent_struct_constructor.rs
-rw-r--r-- 9900 index_refutable_slice.rs
-rw-r--r-- 6703 indexing_slicing.rs
-rw-r--r-- 8582 infinite_iter.rs
-rw-r--r-- 4839 inherent_impl.rs
-rw-r--r-- 5137 inherent_to_string.rs
-rw-r--r-- 2881 init_numbered_fields.rs
-rw-r--r-- 1925 inline_fn_without_body.rs
-rw-r--r-- 6160 int_plus_one.rs
-rw-r--r-- 1803 integer_division.rs
-rw-r--r-- 6389 invalid_upcast_comparisons.rs
-rw-r--r-- 2624 items_after_statements.rs
-rw-r--r-- 3075 iter_not_returning_iterator.rs
-rw-r--r-- 2962 large_const_arrays.rs
-rw-r--r-- 7879 large_enum_variant.rs
-rw-r--r-- 2732 large_include_file.rs
-rw-r--r-- 2291 large_stack_arrays.rs
-rw-r--r-- 17744 len_zero.rs
-rw-r--r-- 5996 let_if_seq.rs
-rw-r--r-- 6042 let_underscore.rs
-rw-r--r-- 2656 lib.deprecated.rs
-rw-r--r-- 16859 lib.register_all.rs
-rw-r--r-- 469 lib.register_cargo.rs
-rw-r--r-- 4889 lib.register_complexity.rs
-rw-r--r-- 3616 lib.register_correctness.rs
-rw-r--r-- 1179 lib.register_internal.rs
-rw-r--r-- 22089 lib.register_lints.rs
-rw-r--r-- 1909 lib.register_nursery.rs
-rw-r--r-- 5046 lib.register_pedantic.rs
-rw-r--r-- 1372 lib.register_perf.rs
-rw-r--r-- 4106 lib.register_restriction.rs
-rw-r--r-- 6096 lib.register_style.rs
-rw-r--r-- 1856 lib.register_suspicious.rs
-rw-r--r-- 43356 lib.rs
-rw-r--r-- 20261 lifetimes.rs
-rw-r--r-- 18045 literal_representation.rs
drwxr-xr-x - loops
-rw-r--r-- 8177 macro_use.rs
-rw-r--r-- 1922 main_recursion.rs
-rw-r--r-- 2830 manual_assert.rs
-rw-r--r-- 7466 manual_async_fn.rs
-rw-r--r-- 4964 manual_bits.rs
-rw-r--r-- 7791 manual_non_exhaustive.rs
-rw-r--r-- 3665 manual_ok_or.rs
-rw-r--r-- 9270 manual_strip.rs
-rw-r--r-- 6532 map_clone.rs
-rw-r--r-- 5573 map_err_ignore.rs
-rw-r--r-- 10162 map_unit_fn.rs
-rw-r--r-- 3496 match_result_ok.rs
drwxr-xr-x - matches
-rw-r--r-- 1608 mem_forget.rs
-rw-r--r-- 9890 mem_replace.rs
drwxr-xr-x - methods
-rw-r--r-- 4265 minmax.rs
-rw-r--r-- 27909 misc.rs
drwxr-xr-x - misc_early
-rw-r--r-- 4805 mismatching_type_param_order.rs
-rw-r--r-- 5603 missing_const_for_fn.rs
-rw-r--r-- 6610 missing_doc.rs
-rw-r--r-- 3422 missing_enforced_import_rename.rs
-rw-r--r-- 6588 missing_inline.rs
-rw-r--r-- 12539 mixed_read_write_in_expression.rs
-rw-r--r-- 5702 module_style.rs
-rw-r--r-- 5185 modulo_arithmetic.rs
-rw-r--r-- 7296 mut_key.rs
-rw-r--r-- 3586 mut_mut.rs
-rw-r--r-- 2365 mut_mutex_lock.rs
-rw-r--r-- 3442 mut_reference.rs
-rw-r--r-- 3979 mutable_debug_assertion.rs
-rw-r--r-- 3670 mutex_atomic.rs
-rw-r--r-- 4858 needless_arbitrary_self_type.rs
-rw-r--r-- 3114 needless_bitwise_bool.rs
-rw-r--r-- 13696 needless_bool.rs
-rw-r--r-- 3480 needless_borrowed_ref.rs
-rw-r--r-- 14271 needless_continue.rs
-rw-r--r-- 6150 needless_for_each.rs
-rw-r--r-- 12036 needless_late_init.rs
-rw-r--r-- 2867 needless_parens_on_range_literals.rs
-rw-r--r-- 14037 needless_pass_by_value.rs
-rw-r--r-- 4554 needless_question_mark.rs
-rw-r--r-- 2162 needless_update.rs
-rw-r--r-- 3284 neg_cmp_op_on_partial_ord.rs
-rw-r--r-- 2469 neg_multiply.rs
-rw-r--r-- 7535 new_without_default.rs
-rw-r--r-- 10196 no_effect.rs
-rw-r--r-- 20852 non_copy_const.rs
-rw-r--r-- 14515 non_expressive_names.rs
-rw-r--r-- 3752 non_octal_unix_permissions.rs
-rw-r--r-- 10352 non_send_fields_in_send_ty.rs
-rw-r--r-- 9211 nonstandard_macro_braces.rs
-rw-r--r-- 6699 numeric_arithmetic.rs
-rw-r--r-- 5300 octal_escapes.rs
-rw-r--r-- 24992 only_used_in_recursion.rs
-rw-r--r-- 6897 open_options.rs
-rw-r--r-- 1883 option_env_unwrap.rs
-rw-r--r-- 8075 option_if_let_else.rs
-rw-r--r-- 3443 overflow_check_conditional.rs
-rw-r--r-- 3220 panic_in_result_fn.rs
-rw-r--r-- 3212 panic_unimplemented.rs
-rw-r--r-- 2031 partialeq_ne_impl.rs
-rw-r--r-- 10884 pass_by_ref_or_value.rs
-rw-r--r-- 2745 path_buf_push_overwrite.rs
-rw-r--r-- 6943 pattern_type_mismatch.rs
-rw-r--r-- 5741 precedence.rs
-rw-r--r-- 25428 ptr.rs
-rw-r--r-- 3418 ptr_eq.rs
-rw-r--r-- 4763 ptr_offset_with_cast.rs
-rw-r--r-- 1581 pub_use.rs
-rw-r--r-- 7076 question_mark.rs
-rw-r--r-- 20874 ranges.rs
-rw-r--r-- 5299 rc_clone_in_vec_init.rs
-rw-r--r-- 27939 redundant_clone.rs
-rw-r--r-- 5791 redundant_closure_call.rs
-rw-r--r-- 4280 redundant_else.rs
-rw-r--r-- 2603 redundant_field_names.rs
-rw-r--r-- 3212 redundant_pub_crate.rs
-rw-r--r-- 7358 redundant_slicing.rs
-rw-r--r-- 4449 redundant_static_lifetimes.rs
-rw-r--r-- 2444 ref_option_ref.rs
-rw-r--r-- 4199 reference.rs
-rw-r--r-- 8048 regex.rs
-rw-r--r-- 2402 renamed_lints.rs
-rw-r--r-- 3610 repeat_once.rs
-rw-r--r-- 4931 return_self_not_must_use.rs
-rw-r--r-- 10528 returns.rs
-rw-r--r-- 7192 same_name_method.rs
-rw-r--r-- 1653 self_assignment.rs
-rw-r--r-- 2952 self_named_constructors.rs
-rw-r--r-- 2477 semicolon_if_nothing_returned.rs
-rw-r--r-- 2180 serde_api.rs
-rw-r--r-- 8296 shadow.rs
-rw-r--r-- 2122 single_char_lifetime_names.rs
-rw-r--r-- 5960 single_component_path_imports.rs
-rw-r--r-- 5679 size_of_in_element_count.rs
-rw-r--r-- 10766 slow_vector_initialization.rs
-rw-r--r-- 5264 stable_sort_primitive.rs
-rw-r--r-- 18870 strings.rs
-rw-r--r-- 3602 strlen_on_c_strings.rs
-rw-r--r-- 24186 suspicious_operation_groupings.rs
-rw-r--r-- 4248 suspicious_trait_impl.rs
-rw-r--r-- 9228 swap.rs
-rw-r--r-- 3410 swap_ptr_to_ref.rs
-rw-r--r-- 6722 tabs_in_doc_comments.rs
-rw-r--r-- 1437 temporary_assignment.rs
-rw-r--r-- 4156 to_digit_is_some.rs
-rw-r--r-- 2987 trailing_empty_array.rs
-rw-r--r-- 10277 trait_bounds.rs
drwxr-xr-x - transmute
-rw-r--r-- 3444 transmuting_null.rs
drwxr-xr-x - types
-rw-r--r-- 13492 undocumented_unsafe_blocks.rs
-rw-r--r-- 4826 unicode.rs
-rw-r--r-- 8880 uninit_vec.rs
-rw-r--r-- 2694 unit_hash.rs
-rw-r--r-- 7672 unit_return_expecting_ord.rs
drwxr-xr-x - unit_types
-rw-r--r-- 4775 unnamed_address.rs
-rw-r--r-- 3459 unnecessary_owned_empty_strings.rs
-rw-r--r-- 2723 unnecessary_self_imports.rs
-rw-r--r-- 11041 unnecessary_sort_by.rs
-rw-r--r-- 6185 unnecessary_wraps.rs
-rw-r--r-- 15932 unnested_or_patterns.rs
-rw-r--r-- 2454 unsafe_removed_from_name.rs
-rw-r--r-- 2977 unused_async.rs
-rw-r--r-- 6302 unused_io_amount.rs
-rw-r--r-- 2311 unused_rounding.rs
-rw-r--r-- 2184 unused_self.rs
-rw-r--r-- 4795 unused_unit.rs
-rw-r--r-- 12440 unwrap.rs
-rw-r--r-- 4750 unwrap_in_result.rs
-rw-r--r-- 4521 upper_case_acronyms.rs
-rw-r--r-- 12325 use_self.rs
-rw-r--r-- 7978 useless_conversion.rs
drwxr-xr-x - utils
-rw-r--r-- 5778 vec.rs
-rw-r--r-- 8575 vec_init_then_push.rs
-rw-r--r-- 2273 vec_resize_to_zero.rs
-rw-r--r-- 3061 verbose_file_reads.rs
-rw-r--r-- 7891 wildcard_imports.rs
-rw-r--r-- 25168 write.rs
-rw-r--r-- 2617 zero_div_zero.rs
-rw-r--r-- 3557 zero_sized_map_values.rs