rust/clippy_lints/src
Jason Newcomb 6d4dc35882
Improve needless_borrow lint
Suggest changing usages of ref bindings to match the new type
Split out some cases into new lint `ref_binding_to_reference`
2021-05-20 09:03:47 -04:00
..
casts
functions
loops Auto merge of #7188 - mgacek8:issue7164_needless_collect_FP, r=xFrednet,flip1995 2021-05-13 16:35:42 +00:00
methods Trigger wrong_self_convention only if it has implicit self 2021-05-13 10:24:29 +02:00
misc_early Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup 2021-05-06 12:20:44 +02:00
transmute
types
unit_types Merge remote-tracking branch 'upstream/master' into rustup 2021-05-20 12:05:02 +02:00
utils Merge remote-tracking branch 'upstream/master' into rustup 2021-05-20 12:05:02 +02:00
absurd_extreme_comparisons.rs
approx_const.rs
arithmetic.rs
as_conversions.rs
asm_syntax.rs
assertions_on_constants.rs
assign_ops.rs
async_yields_async.rs
atomic_ordering.rs
attrs.rs
await_holding_invalid.rs
bit_mask.rs
blacklisted_name.rs
blocks_in_if_conditions.rs
bool_assert_comparison.rs
booleans.rs
bytecount.rs
cargo_common_metadata.rs
case_sensitive_file_extension_comparisons.rs
checked_conversions.rs
cognitive_complexity.rs
collapsible_if.rs
collapsible_match.rs
comparison_chain.rs Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup 2021-05-06 12:20:44 +02:00
consts.rs
copies.rs
copy_iterator.rs
create_dir.rs
dbg_macro.rs
default_numeric_fallback.rs
default.rs Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup 2021-05-06 12:20:44 +02:00
deprecated_lints.rs Update clippy_lints/src/deprecated_lints.rs 2021-05-11 18:33:51 +02:00
dereference.rs
derive.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-05-20 12:05:02 +02:00
disallowed_method.rs
doc.rs Improvements to while_let_on_iterator 2021-05-12 21:49:22 -04:00
double_comparison.rs
double_parens.rs
drop_forget_ref.rs
duration_subsec.rs
else_if_without_else.rs
empty_enum.rs
entry.rs
enum_clike.rs
enum_variants.rs
eq_op.rs
erasing_op.rs
escape.rs
eta_reduction.rs
eval_order_dependence.rs Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup 2021-05-06 12:20:44 +02:00
excessive_bools.rs
exhaustive_items.rs
exit.rs
explicit_write.rs
fallible_impl_from.rs
float_equality_without_abs.rs
float_literal.rs
floating_point_arithmetic.rs Remove powi, "square can be computed more efficiently" 2021-05-17 21:59:08 -05:00
format.rs
formatting.rs
from_over_into.rs
from_str_radix_10.rs
future_not_send.rs
get_last_with_len.rs
identity_op.rs
if_let_mutex.rs
if_let_some_result.rs
if_not_else.rs
if_then_some_else_none.rs
implicit_hasher.rs
implicit_return.rs Fix ICE in implicit_return 2021-05-18 10:51:59 -04:00
implicit_saturating_sub.rs
inconsistent_struct_constructor.rs Move inconsistent_struct_constructor to pedantic 2021-05-07 20:24:07 -07:00
indexing_slicing.rs
infinite_iter.rs
inherent_impl.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-05-20 12:05:02 +02:00
inherent_to_string.rs
inline_fn_without_body.rs
int_plus_one.rs
integer_division.rs
invalid_upcast_comparisons.rs
items_after_statements.rs
large_const_arrays.rs
large_enum_variant.rs
large_stack_arrays.rs
len_zero.rs
let_if_seq.rs
let_underscore.rs
lib.rs Improve needless_borrow lint 2021-05-20 09:03:47 -04:00
lifetimes.rs
literal_representation.rs
macro_use.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-05-20 12:05:02 +02:00
main_recursion.rs
manual_async_fn.rs
manual_map.rs
manual_non_exhaustive.rs
manual_ok_or.rs
manual_strip.rs
manual_unwrap_or.rs Fix manual_unwrap_or FP deref reference 2021-05-17 14:20:26 -05:00
map_clone.rs
map_err_ignore.rs
map_identity.rs
map_unit_fn.rs
match_on_vec_items.rs
matches.rs Auto merge of #7095 - Y-Nak:match_single_binding, r=giraffate 2021-05-13 13:55:47 +00:00
mem_discriminant.rs
mem_forget.rs
mem_replace.rs
minmax.rs
misc.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-05-20 12:05:02 +02:00
missing_const_for_fn.rs
missing_doc.rs
missing_inline.rs
modulo_arithmetic.rs
multiple_crate_versions.rs
mut_key.rs
mut_mut.rs
mut_mutex_lock.rs
mut_reference.rs
mutable_debug_assertion.rs
mutex_atomic.rs
needless_arbitrary_self_type.rs
needless_bitwise_bool.rs Fix missing variable init in lint example 2021-05-17 15:00:15 +00:00
needless_bool.rs
needless_borrow.rs Improve needless_borrow lint 2021-05-20 09:03:47 -04:00
needless_borrowed_ref.rs
needless_continue.rs
needless_for_each.rs
needless_pass_by_value.rs
needless_question_mark.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-05-20 12:05:02 +02:00
needless_update.rs
neg_cmp_op_on_partial_ord.rs
neg_multiply.rs
new_without_default.rs
no_effect.rs
non_copy_const.rs
non_expressive_names.rs
non_octal_unix_permissions.rs
open_options.rs
option_env_unwrap.rs
option_if_let_else.rs Remove dead code after not linting else if let 2021-05-17 14:09:54 -05:00
overflow_check_conditional.rs
panic_in_result_fn.rs
panic_unimplemented.rs
partialeq_ne_impl.rs
pass_by_ref_or_value.rs
path_buf_push_overwrite.rs
pattern_type_mismatch.rs
precedence.rs
ptr_eq.rs
ptr_offset_with_cast.rs
ptr.rs
question_mark.rs
ranges.rs
redundant_clone.rs
redundant_closure_call.rs
redundant_else.rs
redundant_field_names.rs
redundant_pub_crate.rs
redundant_slicing.rs
redundant_static_lifetimes.rs
ref_option_ref.rs
reference.rs
regex.rs
repeat_once.rs
returns.rs
self_assignment.rs
semicolon_if_nothing_returned.rs
serde_api.rs
shadow.rs
single_component_path_imports.rs
size_of_in_element_count.rs
slow_vector_initialization.rs Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup 2021-05-06 12:20:44 +02:00
stable_sort_primitive.rs
strings.rs
suspicious_operation_groupings.rs
suspicious_trait_impl.rs
swap.rs
tabs_in_doc_comments.rs
temporary_assignment.rs
to_digit_is_some.rs
to_string_in_display.rs
trait_bounds.rs
transmuting_null.rs
try_err.rs Fix clippy 2021-05-06 11:37:45 -07:00
undropped_manually_drops.rs
unicode.rs
unit_return_expecting_ord.rs
unnamed_address.rs
unnecessary_self_imports.rs
unnecessary_sort_by.rs
unnecessary_wraps.rs
unnested_or_patterns.rs
unsafe_removed_from_name.rs
unused_async.rs Unnecessary -> Unused 2021-05-14 17:07:30 -07:00
unused_io_amount.rs Fix clippy 2021-05-06 11:37:45 -07:00
unused_self.rs
unused_unit.rs Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup 2021-05-06 12:20:44 +02:00
unwrap_in_result.rs
unwrap.rs
upper_case_acronyms.rs
use_self.rs Add generic args for comparison in use_self and useless_conversion lints 2021-05-17 17:27:16 +02:00
useless_conversion.rs Add generic args for comparison in use_self and useless_conversion lints 2021-05-17 17:27:16 +02:00
vec_init_then_push.rs
vec_resize_to_zero.rs
vec.rs
verbose_file_reads.rs
wildcard_dependencies.rs
wildcard_imports.rs
write.rs Handle write!(buf, "\n") case better 2021-05-07 00:53:13 +02:00
zero_div_zero.rs
zero_sized_map_values.rs