rust/clippy_lints/src
2022-06-02 20:22:15 +08:00
..
cargo
casts cast_abs_to_unsigned: do not remove cast if it's required 2022-05-23 12:23:48 +00:00
functions update clippy 2022-05-10 12:07:35 +02:00
loops Auto merge of #8908 - Serial-ATA:doc-comment-issues, r=xFrednet 2022-06-02 07:38:01 +00:00
matches needless_deref 2022-05-30 01:46:15 +00:00
methods Apply needless_return suggestions 2022-06-02 20:22:15 +08:00
misc_early Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
transmute Move useless_transmute back to complexity 2022-05-31 10:40:40 -04:00
types Comment why hir_ty_to_ty is safe in check_ty 2022-05-13 05:55:50 -04:00
unit_types Fix ICE in let_unit_value when calling a static or const callable type 2022-05-16 10:00:32 -04:00
utils needless_deref 2022-05-30 01:46:15 +00:00
absurd_extreme_comparisons.rs
almost_complete_letter_range.rs Add lint almost_complete_letter_range 2022-05-30 23:20:04 -04:00
approx_const.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
arithmetic.rs
as_conversions.rs Combine doc examples 2022-06-01 18:53:15 -04:00
asm_syntax.rs
assertions_on_constants.rs
assign_ops.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
async_yields_async.rs
attrs.rs Combine doc examples 2022-06-01 18:53:15 -04:00
await_holding_invalid.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
bit_mask.rs use let chains in bit_mask.rs 2022-05-09 14:06:46 +01:00
blacklisted_name.rs
blocks_in_if_conditions.rs Combine doc examples 2022-06-01 18:53:15 -04:00
bool_assert_comparison.rs
booleans.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
borrow_as_ptr.rs Pass msrvs by copy 2022-05-08 07:13:14 -04:00
borrow_deref_ref.rs needless_deref 2022-05-30 01:46:15 +00:00
bytecount.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
bytes_count_to_len.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
case_sensitive_file_extension_comparisons.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
checked_conversions.rs needless_deref 2022-05-30 01:46:15 +00:00
cognitive_complexity.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
collapsible_if.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
collapsible_match.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-05-20 20:47:31 +02:00
comparison_chain.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
copies.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
copy_iterator.rs
crate_in_macro_def.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
create_dir.rs
dbg_macro.rs fix 2022-05-27 01:30:44 +09:00
default_numeric_fallback.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
default_union_representation.rs Tweak some words improved representation 2022-05-13 14:20:25 +09:00
default.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
deprecated_lints.rs Remove code block from pub_enum_variant_names 2022-05-19 10:10:55 -04:00
dereference.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
derivable_impls.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
derive.rs Set correct ParamEnv for derive_partial_eq_without_eq 2022-05-22 12:19:10 -04:00
disallowed_methods.rs Lint indirect usages in disallowed_methods 2022-05-20 12:39:15 +00:00
disallowed_script_idents.rs
disallowed_types.rs
doc_link_with_quotes.rs
doc.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
double_comparison.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
double_parens.rs Combine doc examples 2022-06-01 18:53:15 -04:00
drop_forget_ref.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
duplicate_mod.rs Add duplicate_mod lint 2022-05-14 22:31:13 +01:00
duration_subsec.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
else_if_without_else.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
empty_drop.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
empty_enum.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
empty_structs_with_brackets.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
entry.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
enum_clike.rs Use the traits added to the Rust 2021 Edition prelude 2022-05-12 00:38:11 +09:00
enum_variants.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
eq_op.rs Combine doc examples 2022-06-01 18:53:15 -04:00
equatable_if_let.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
erasing_op.rs
escape.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
eta_reduction.rs Add bound_type_of 2022-05-13 18:27:18 -04:00
excessive_bools.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
exhaustive_items.rs Drop vis in FieldDef. 2022-04-23 09:56:15 +02:00
exit.rs
explicit_write.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
fallible_impl_from.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
float_equality_without_abs.rs
float_literal.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
floating_point_arithmetic.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
format_args.rs
format_impl.rs
format_push_string.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
format.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
formatting.rs Make docs more consistent 2022-05-28 09:48:26 -04:00
from_over_into.rs Pass msrvs by copy 2022-05-08 07:13:14 -04:00
from_str_radix_10.rs
future_not_send.rs Introduce EarlyBinder 2022-05-10 22:47:18 -04:00
get_first.rs refactor: get the required variables with MethodCall 2022-05-25 09:11:29 +09:00
identity_op.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
if_let_mutex.rs
if_not_else.rs
if_then_some_else_none.rs Pass msrvs by copy 2022-05-08 07:13:14 -04:00
implicit_hasher.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
implicit_return.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
implicit_saturating_sub.rs
inconsistent_struct_constructor.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
index_refutable_slice.rs Use the traits added to the Rust 2021 Edition prelude 2022-05-12 00:38:11 +09:00
indexing_slicing.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
infinite_iter.rs
inherent_impl.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
inherent_to_string.rs
init_numbered_fields.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
inline_fn_without_body.rs
int_plus_one.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
integer_division.rs
invalid_upcast_comparisons.rs
items_after_statements.rs
iter_not_returning_iterator.rs
large_const_arrays.rs
large_enum_variant.rs
large_include_file.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
large_stack_arrays.rs
len_zero.rs
let_if_seq.rs needless_deref 2022-05-30 01:46:15 +00:00
let_underscore.rs
lib.deprecated.rs
lib.register_all.rs Auto merge of #7930 - lengyijun:needless_deref_new, r=Jarcho 2022-06-01 16:43:14 +00:00
lib.register_cargo.rs
lib.register_complexity.rs Auto merge of #7930 - lengyijun:needless_deref_new, r=Jarcho 2022-06-01 16:43:14 +00:00
lib.register_correctness.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
lib.register_internal.rs
lib.register_lints.rs Auto merge of #7930 - lengyijun:needless_deref_new, r=Jarcho 2022-06-01 16:43:14 +00:00
lib.register_nursery.rs Move useless_transmute back to complexity 2022-05-31 10:40:40 -04:00
lib.register_pedantic.rs Merge branch 'master' into doc_link_with_quotes 2022-05-28 10:55:25 +02:00
lib.register_perf.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
lib.register_restriction.rs Move mixed_read_write_in_expression into restriction 2022-05-15 17:08:48 -04:00
lib.register_style.rs feat(lint): impl lint about use first() instead of get(0) 2022-05-25 09:08:23 +09:00
lib.register_suspicious.rs Add lint swap_ptr_to_ref 2022-05-31 13:08:05 -04:00
lib.rs Auto merge of #7930 - lengyijun:needless_deref_new, r=Jarcho 2022-06-01 16:43:14 +00:00
lifetimes.rs Track if a where bound comes from a impl Trait desugar 2022-05-07 17:10:30 +02:00
literal_representation.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
macro_use.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
main_recursion.rs Tweak some words improved representation 2022-05-13 14:20:25 +09:00
manual_assert.rs
manual_async_fn.rs
manual_bits.rs Pass msrvs by copy 2022-05-08 07:13:14 -04:00
manual_map.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
manual_non_exhaustive.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-05-20 20:47:31 +02:00
manual_ok_or.rs
manual_strip.rs Pass msrvs by copy 2022-05-08 07:13:14 -04:00
manual_unwrap_or.rs
map_clone.rs Pass msrvs by copy 2022-05-08 07:13:14 -04:00
map_err_ignore.rs
map_unit_fn.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
match_on_vec_items.rs
match_result_ok.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
match_str_case_mismatch.rs Remove newlines in [match_str_case_mismatch] example 2022-05-25 17:37:57 -04:00
mem_forget.rs
mem_replace.rs Pass msrvs by copy 2022-05-08 07:13:14 -04:00
minmax.rs Combine doc examples 2022-06-01 18:53:15 -04:00
misc.rs Combine doc examples 2022-06-01 18:53:15 -04:00
missing_const_for_fn.rs Pass msrvs by copy 2022-05-08 07:13:14 -04:00
missing_doc.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-05-05 13:32:06 +01:00
missing_enforced_import_rename.rs
missing_inline.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
mixed_read_write_in_expression.rs needless_deref 2022-05-30 01:46:15 +00:00
module_style.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
modulo_arithmetic.rs
mut_key.rs needless_deref 2022-05-30 01:46:15 +00:00
mut_mut.rs
mut_mutex_lock.rs
mut_reference.rs Add bound_type_of 2022-05-13 18:27:18 -04:00
mutable_debug_assertion.rs Combine doc examples 2022-06-01 18:53:15 -04:00
mutex_atomic.rs
needless_arbitrary_self_type.rs
needless_bitwise_bool.rs Tweak some words improved representation 2022-05-13 14:20:25 +09:00
needless_bool.rs
needless_borrowed_ref.rs
needless_continue.rs
needless_for_each.rs
needless_late_init.rs needless_late_init: fix ICE when all branches return the never type 2022-05-29 18:39:27 +00:00
needless_pass_by_value.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
needless_question_mark.rs
needless_update.rs
neg_cmp_op_on_partial_ord.rs
neg_multiply.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
new_without_default.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-05-20 20:47:31 +02:00
no_effect.rs
non_copy_const.rs
non_expressive_names.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
non_octal_unix_permissions.rs
non_send_fields_in_send_ty.rs
nonstandard_macro_braces.rs
octal_escapes.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
only_used_in_recursion.rs fix clippy 2022-05-09 21:48:57 +08:00
open_options.rs
option_env_unwrap.rs
option_if_let_else.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
overflow_check_conditional.rs
panic_in_result_fn.rs needless_deref 2022-05-30 01:46:15 +00:00
panic_unimplemented.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
partialeq_ne_impl.rs update clippy 2022-05-10 12:07:35 +02:00
pass_by_ref_or_value.rs needless_deref 2022-05-30 01:46:15 +00:00
path_buf_push_overwrite.rs
pattern_type_mismatch.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
precedence.rs
ptr_eq.rs
ptr_offset_with_cast.rs
ptr.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
pub_use.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
question_mark.rs
ranges.rs Fix issue with mismatched parens in suggestion 2022-05-24 14:57:49 -04:00
rc_clone_in_vec_init.rs Support Weak in [rc_clone_in_vec_init] 2022-05-26 21:52:25 -04:00
redundant_clone.rs needless_deref 2022-05-30 01:46:15 +00:00
redundant_closure_call.rs
redundant_else.rs
redundant_field_names.rs Pass msrvs by copy 2022-05-08 07:13:14 -04:00
redundant_pub_crate.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
redundant_slicing.rs
redundant_static_lifetimes.rs needless_deref 2022-05-30 01:46:15 +00:00
ref_option_ref.rs
reference.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
regex.rs Use the traits added to the Rust 2021 Edition prelude 2022-05-12 00:38:11 +09:00
renamed_lints.rs Rename eval_order_dependence to mixed_read_write_in_expression 2022-05-15 17:08:45 -04:00
repeat_once.rs
return_self_not_must_use.rs Stop visiting visibility. 2022-04-23 09:53:45 +02:00
returns.rs needless_return checks for macro expr in return stmts 2022-06-02 20:22:15 +08:00
same_name_method.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-05-20 20:47:31 +02:00
self_assignment.rs
self_named_constructors.rs
semicolon_if_nothing_returned.rs
serde_api.rs Box HIR Generics and Impl. 2022-04-30 13:51:49 +02:00
shadow.rs Fix #8748 2022-05-30 22:46:31 +02:00
significant_drop_in_scrutinee.rs Remove duplicated code and ignore deadlock test 2022-05-20 23:32:58 +02:00
single_char_lifetime_names.rs
single_component_path_imports.rs
size_of_in_element_count.rs needless_deref 2022-05-30 01:46:15 +00:00
slow_vector_initialization.rs
stable_sort_primitive.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
strings.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
strlen_on_c_strings.rs
suspicious_operation_groupings.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
suspicious_trait_impl.rs
swap_ptr_to_ref.rs Add lint swap_ptr_to_ref 2022-05-31 13:08:05 -04:00
swap.rs
tabs_in_doc_comments.rs Use the traits added to the Rust 2021 Edition prelude 2022-05-12 00:38:11 +09:00
temporary_assignment.rs
to_digit_is_some.rs
trailing_empty_array.rs
trait_bounds.rs Combine doc examples 2022-06-01 18:53:15 -04:00
transmuting_null.rs
try_err.rs
undocumented_unsafe_blocks.rs fix 2022-05-12 12:33:05 +09:00
unicode.rs
uninit_vec.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
unit_hash.rs
unit_return_expecting_ord.rs
unnamed_address.rs
unnecessary_owned_empty_strings.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
unnecessary_self_imports.rs
unnecessary_sort_by.rs
unnecessary_wraps.rs
unnested_or_patterns.rs Pass msrvs by copy 2022-05-08 07:13:14 -04:00
unsafe_removed_from_name.rs
unused_async.rs Stop visiting visibility. 2022-04-23 09:53:45 +02:00
unused_io_amount.rs
unused_rounding.rs Changed the lint description 2022-05-24 22:53:35 -04:00
unused_self.rs
unused_unit.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
unwrap_in_result.rs
unwrap.rs
upper_case_acronyms.rs
use_self.rs Triggered the lint on tuple struct and struct patterns 2022-05-30 13:39:18 -04:00
useless_conversion.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
vec_init_then_push.rs Update vec_init_then_push docs 2022-05-15 17:39:39 -04:00
vec_resize_to_zero.rs
vec.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
verbose_file_reads.rs
wildcard_imports.rs Drop vis in Item. 2022-04-23 09:59:24 +02:00
write.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
zero_div_zero.rs
zero_sized_map_values.rs