rust-clippy/clippy_lints/src
bors ac795a6f3a Auto merge of #4960 - ThibsG:patterns_with_wildcard_#4640, r=flip1995
New lint: pats_with_wild_match_arm

Wildcard use with other pattern in same match arm.

The wildcard covers other(s) pattern(s) as it will match anyway.

changelog: add new lint when multiple patterns (including wildcard) are used in a match arm.

Fixes #4640.
2020-01-09 13:51:00 +00:00
..
methods Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
utils Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
approx_const.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
arithmetic.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
as_conversions.rs Rustup to rust-lang/rust#66878 2019-12-04 01:34:01 +01:00
assertions_on_constants.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
assign_ops.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
atomic_ordering.rs Prevent doc-tests from running and fix lint description 2020-01-06 17:33:28 -08:00
attrs.rs Apply suggestion from code review 2020-01-07 18:38:12 +09:00
bit_mask.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
blacklisted_name.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
block_in_if_condition.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
booleans.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
bytecount.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
cargo_common_metadata.rs Rustup to https://github.com/rust-lang/rust/pull/67853 2020-01-04 11:30:03 +01:00
checked_conversions.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
cognitive_complexity.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
collapsible_if.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
comparison_chain.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
consts.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
copies.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
copy_iterator.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
dbg_macro.rs Rustup to https://github.com/rust-lang/rust/pull/67853 2020-01-04 11:30:03 +01:00
default_trait_access.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
deprecated_lints.rs Deprecate unused_label lint 2019-12-21 16:20:30 +01:00
derive.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
doc.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
double_comparison.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
double_parens.rs Rustup to rust-lang/rust#66878 2019-12-04 01:34:01 +01:00
drop_bounds.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
drop_forget_ref.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
duration_subsec.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
else_if_without_else.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
empty_enum.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
entry.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
enum_clike.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
enum_glob_use.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
enum_variants.rs Rustup to https://github.com/rust-lang/rust/pull/67853 2020-01-04 11:30:03 +01:00
eq_op.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
erasing_op.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
escape.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
eta_reduction.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
eval_order_dependence.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
excessive_precision.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
exit.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
explicit_write.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
fallible_impl_from.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
format.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
formatting.rs rustup "Add span information to ExprKind::Assign" 2019-12-24 11:25:24 +07:00
functions.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
get_last_with_len.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
identity_conversion.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
identity_op.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
if_not_else.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
implicit_return.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
indexing_slicing.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
infallible_destructuring_match.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
infinite_iter.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
inherent_impl.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
inherent_to_string.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
inline_fn_without_body.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
int_plus_one.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
integer_division.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
items_after_statements.rs Rustup to rust-lang/rust#66878 2019-12-04 01:34:01 +01:00
large_enum_variant.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
large_stack_arrays.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
len_zero.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
let_if_seq.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
let_underscore.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
lib.rs Auto merge of #4960 - ThibsG:patterns_with_wildcard_#4640, r=flip1995 2020-01-09 13:51:00 +00:00
lifetimes.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
literal_representation.rs Rustup to rust-lang/rust#67707 2019-12-31 09:17:56 +09:00
loops.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
main_recursion.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
map_clone.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
map_unit_fn.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
matches.rs Span help without suggestion 2020-01-07 19:10:59 +01:00
mem_discriminant.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
mem_forget.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
mem_replace.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
minmax.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
misc.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
misc_early.rs Rustup to https://github.com/rust-lang/rust/pull/67853 2020-01-04 11:30:03 +01:00
missing_const_for_fn.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
missing_doc.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
missing_inline.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
modulo_arithmetic.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
mul_add.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
multiple_crate_versions.rs Rustup to https://github.com/rust-lang/rust/pull/67853 2020-01-04 11:30:03 +01:00
mut_key.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
mut_mut.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
mut_reference.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
mutable_debug_assertion.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
mutex_atomic.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
needless_bool.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
needless_borrow.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
needless_borrowed_ref.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
needless_continue.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
needless_pass_by_value.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
needless_update.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
neg_cmp_op_on_partial_ord.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
neg_multiply.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
new_without_default.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
no_effect.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
non_copy_const.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
non_expressive_names.rs Rustup to https://github.com/rust-lang/rust/pull/67853 2020-01-04 11:30:03 +01:00
ok_if_let.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
open_options.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
overflow_check_conditional.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
panic_unimplemented.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
partialeq_ne_impl.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
path_buf_push_overwrite.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
precedence.rs Rustup to https://github.com/rust-lang/rust/pull/67853 2020-01-04 11:30:03 +01:00
ptr.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
ptr_offset_with_cast.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
question_mark.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
ranges.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
redundant_clone.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
redundant_field_names.rs Rustup to rust-lang/rust#66878 2019-12-04 01:34:01 +01:00
redundant_pattern_matching.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
redundant_static_lifetimes.rs Rustup to https://github.com/rust-lang/rust/pull/67853 2020-01-04 11:30:03 +01:00
reference.rs Rustup to rust-lang/rust#66878 2019-12-04 01:34:01 +01:00
regex.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
replace_consts.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
returns.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
serde_api.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
shadow.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
slow_vector_initialization.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
strings.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
suspicious_trait_impl.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
swap.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
tabs_in_doc_comments.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
temporary_assignment.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
to_digit_is_some.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
trait_bounds.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
transmute.rs Move transmute_float_to_int lint to complexity 2020-01-07 15:53:19 -08:00
transmuting_null.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
trivially_copy_pass_by_ref.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
try_err.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
types.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
unicode.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
unsafe_removed_from_name.rs Normalize lint messages 2020-01-07 18:26:55 +09:00
unused_io_amount.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
unused_self.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
unwrap.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
use_self.rs Rustup to rust-lang/rust#67979 2020-01-09 16:43:51 +09:00
vec.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
wildcard_dependencies.rs Rustup to https://github.com/rust-lang/rust/pull/67853 2020-01-04 11:30:03 +01:00
write.rs Rustup to https://github.com/rust-lang/rust/pull/67853 2020-01-04 11:30:03 +01:00
zero_div_zero.rs Normalize lint messages 2020-01-07 18:26:55 +09:00