rust-clippy/clippy_lints/src
Georgy Komarov a5a07e503f single_match: Don't lint non-exhaustive matches; support tuples
This commit changes the behavior of `single_match` lint.

After that, we won't lint non-exhaustive matches like this:

```rust
match Some(v) {
    Some(a) => println!("${:?}", a),
    None => {},
}
```

The rationale is that, because the type of `a` could be changed, so the
user can get non-exhaustive match after applying the suggested lint (see
https://github.com/rust-lang/rust-clippy/issues/8282#issuecomment-1013566068
for context).

We also will lint `match` constructions with tuples. When we see the
tuples on the both arms, we will check them both at the same time, and
if they form exhaustive match, we could display the warning.

Closes #8282
2022-01-20 15:14:25 +03:00
..
casts Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
functions Apply not_unsafe_ptr_arg_deref to type aliases 2022-01-13 09:47:56 -05:00
loops Auto merge of #8226 - Jarcho:manual_memcpy_8160, r=flip1995 2022-01-12 18:44:34 +00:00
methods Auto merge of #8231 - Jarcho:implicit_clone_8227, r=camsteffen 2022-01-14 22:17:29 +00:00
misc_early Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
transmute Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
types Improve documentation for borrowed-box lint 2022-01-11 22:02:15 +05:30
unit_types New macro utils 2022-01-04 22:32:02 +00:00
utils Merge remote-tracking branch 'upstream/master' into rustup 2022-01-13 12:47:48 +01:00
absurd_extreme_comparisons.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
approx_const.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
arithmetic.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
as_conversions.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
asm_syntax.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
assertions_on_constants.rs New macro utils 2022-01-04 22:32:02 +00:00
assign_ops.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
async_yields_async.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
attrs.rs New macro utils 2022-01-04 22:32:02 +00:00
await_holding_invalid.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
bit_mask.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
blacklisted_name.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
blocks_in_if_conditions.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
bool_assert_comparison.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
booleans.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
borrow_as_ptr.rs Add borrow_as_ptr lint 2022-01-11 09:53:29 +01:00
bytecount.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
cargo_common_metadata.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
case_sensitive_file_extension_comparisons.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
checked_conversions.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
cognitive_complexity.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
collapsible_if.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
collapsible_match.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
comparison_chain.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
copies.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
copy_iterator.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
create_dir.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
dbg_macro.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
default.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-01-13 12:47:48 +01:00
default_numeric_fallback.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-01-13 12:47:48 +01:00
deprecated_lints.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
dereference.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
derivable_impls.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
derive.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
disallowed_methods.rs Use method name from conf::DisallowedMethod 2022-01-12 16:23:22 +00:00
disallowed_script_idents.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
disallowed_types.rs Warn disallowed_methods and disallowed_types by default 2022-01-11 02:17:14 +09:00
doc.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-01-13 12:47:48 +01:00
double_comparison.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
double_parens.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
drop_forget_ref.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
duration_subsec.rs Remove unnecessary sigils around Ident::as_str() calls. 2021-12-15 17:32:42 +11:00
else_if_without_else.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
empty_enum.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
entry.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
enum_clike.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
enum_variants.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
eq_op.rs New macro utils 2022-01-04 22:32:02 +00:00
equatable_if_let.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
erasing_op.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
escape.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
eta_reduction.rs fix [redundant_closure] fp with Arc 2021-12-29 09:05:04 -08:00
eval_order_dependence.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
excessive_bools.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
exhaustive_items.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
exit.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
explicit_write.rs New macro utils 2022-01-04 22:32:02 +00:00
fallible_impl_from.rs New macro utils 2022-01-04 22:32:02 +00:00
feature_name.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
float_equality_without_abs.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
float_literal.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
floating_point_arithmetic.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
format.rs New macro utils 2022-01-04 22:32:02 +00:00
format_args.rs New macro utils 2022-01-04 22:32:02 +00:00
formatting.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
from_over_into.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
from_str_radix_10.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
future_not_send.rs Revert "Auto merge of #91491 - spastorino:revert-91354, r=oli-obk" 2021-12-12 12:34:46 +08:00
get_last_with_len.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
identity_op.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
if_let_mutex.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
if_not_else.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
if_then_some_else_none.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
implicit_hasher.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
implicit_return.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
implicit_saturating_sub.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
inconsistent_struct_constructor.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-01-13 12:47:48 +01:00
index_refutable_slice.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
indexing_slicing.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
infinite_iter.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
inherent_impl.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
inherent_to_string.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
init_numbered_fields.rs Remove in_macro from utils 2022-01-04 12:07:42 -06:00
inline_fn_without_body.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
int_plus_one.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
integer_division.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
invalid_upcast_comparisons.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
items_after_statements.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
iter_not_returning_iterator.rs Erase late bound regions in iter_not_returning_iterator 2022-01-15 00:15:25 -05:00
large_const_arrays.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
large_enum_variant.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
large_stack_arrays.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
len_zero.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-01-13 12:47:48 +01:00
let_if_seq.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
let_underscore.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
lib.deprecated.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
lib.register_all.rs Add manual_bits lint 2022-01-12 16:46:57 +01:00
lib.register_cargo.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
lib.register_complexity.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
lib.register_correctness.rs Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup 2021-11-04 12:52:36 +00:00
lib.register_internal.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
lib.register_lints.rs Add manual_bits lint 2022-01-12 16:46:57 +01:00
lib.register_nursery.rs Auto merge of #8260 - taiki-e:mutex_atomic, r=llogiq 2022-01-11 08:09:11 +00:00
lib.register_pedantic.rs Add borrow_as_ptr lint 2022-01-11 09:53:29 +01:00
lib.register_perf.rs Downgrade mutex_atomic to nursery 2022-01-10 23:36:13 +09:00
lib.register_restriction.rs new lint: single_char_lifetime_names 2022-01-09 14:27:36 +00:00
lib.register_style.rs Add manual_bits lint 2022-01-12 16:46:57 +01:00
lib.register_suspicious.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
lib.rs Add manual_bits lint 2022-01-12 16:46:57 +01:00
lifetimes.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
literal_representation.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
macro_use.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-01-13 12:47:48 +01:00
main_recursion.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
manual_assert.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
manual_async_fn.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
manual_bits.rs Add manual_bits lint 2022-01-12 16:46:57 +01:00
manual_map.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
manual_non_exhaustive.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
manual_ok_or.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
manual_strip.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
manual_unwrap_or.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
map_clone.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
map_err_ignore.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
map_unit_fn.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
match_on_vec_items.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
match_result_ok.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
match_str_case_mismatch.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
matches.rs single_match: Don't lint non-exhaustive matches; support tuples 2022-01-20 15:14:25 +03:00
mem_forget.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
mem_replace.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
minmax.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
misc.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
missing_const_for_fn.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
missing_doc.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
missing_enforced_import_rename.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
missing_inline.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
module_style.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
modulo_arithmetic.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
multiple_crate_versions.rs Remove SymbolStr. 2021-12-15 13:30:26 +11:00
mut_key.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
mut_mut.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
mut_mutex_lock.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
mut_reference.rs Remove unnecessary sigils around Ident::as_str() calls. 2021-12-15 17:32:42 +11:00
mutable_debug_assertion.rs New macro utils 2022-01-04 22:32:02 +00:00
mutex_atomic.rs Downgrade mutex_atomic to nursery 2022-01-10 23:36:13 +09:00
needless_arbitrary_self_type.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
needless_bitwise_bool.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
needless_bool.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
needless_borrowed_ref.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
needless_continue.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
needless_for_each.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
needless_late_init.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
needless_option_as_deref.rs Remove unnecessary sigils around Ident::as_str() calls. 2021-12-15 17:32:42 +11:00
needless_pass_by_value.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
needless_question_mark.rs Fix clippy uses of QPath::LangItem 2021-12-13 17:09:16 +00:00
needless_update.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
neg_cmp_op_on_partial_ord.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
neg_multiply.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
new_without_default.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
no_effect.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
non_copy_const.rs Update clippy for associated item changes 2022-01-07 13:31:46 -08:00
non_expressive_names.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
non_octal_unix_permissions.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
non_send_fields_in_send_ty.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
nonstandard_macro_braces.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
octal_escapes.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
open_options.rs Remove unnecessary sigils around Ident::as_str() calls. 2021-12-15 17:32:42 +11:00
option_env_unwrap.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
option_if_let_else.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
overflow_check_conditional.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
panic_in_result_fn.rs New macro utils 2022-01-04 22:32:02 +00:00
panic_unimplemented.rs New macro utils 2022-01-04 22:32:02 +00:00
partialeq_ne_impl.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
pass_by_ref_or_value.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
path_buf_push_overwrite.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
pattern_type_mismatch.rs let-else: use hir::Let in clippy 2021-12-13 14:02:41 +11:00
precedence.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
ptr.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
ptr_eq.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
ptr_offset_with_cast.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
question_mark.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
ranges.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
redundant_clone.rs wrong_self_convention: Match SelfKind::No more restrictively 2021-12-31 23:39:40 -05:00
redundant_closure_call.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
redundant_else.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
redundant_field_names.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
redundant_pub_crate.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
redundant_slicing.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
redundant_static_lifetimes.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
ref_option_ref.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
reference.rs Don't lint deref_addrof when the two operations occur in different expansions 2022-01-12 00:25:42 -05:00
regex.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
repeat_once.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
return_self_not_must_use.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
returns.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
same_name_method.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
self_assignment.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
self_named_constructors.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
semicolon_if_nothing_returned.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
serde_api.rs Remove unnecessary sigils around Ident::as_str() calls. 2021-12-15 17:32:42 +11:00
shadow.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
single_char_lifetime_names.rs new lint: single_char_lifetime_names 2022-01-09 14:27:36 +00:00
single_component_path_imports.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
size_of_in_element_count.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
slow_vector_initialization.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
stable_sort_primitive.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
strings.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
strlen_on_c_strings.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
suspicious_operation_groupings.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
suspicious_trait_impl.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
swap.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
tabs_in_doc_comments.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
temporary_assignment.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
to_digit_is_some.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
to_string_in_display.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
trailing_empty_array.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-01-13 12:47:48 +01:00
trait_bounds.rs trait_duplication_in_bounds Update description and add test 2022-01-10 12:45:22 +08:00
transmuting_null.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
try_err.rs Fix clippy uses of QPath::LangItem 2021-12-13 17:09:16 +00:00
undocumented_unsafe_blocks.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
undropped_manually_drops.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
unicode.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
uninit_vec.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
unit_hash.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
unit_return_expecting_ord.rs Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
unnamed_address.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
unnecessary_self_imports.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
unnecessary_sort_by.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
unnecessary_wraps.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
unnested_or_patterns.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
unsafe_removed_from_name.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
unused_async.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
unused_io_amount.rs unused_io_amount: Use span_lint_and_help. 2021-12-31 12:21:43 -05:00
unused_self.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
unused_unit.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
unwrap.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
unwrap_in_result.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
upper_case_acronyms.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
use_self.rs Update clippy for associated item changes 2022-01-07 13:31:46 -08:00
useless_conversion.rs Remove unnecessary sigils around Ident::as_str() calls. 2021-12-15 17:32:42 +11:00
vec.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
vec_init_then_push.rs Stop using in_band_lifetimes 2022-01-11 09:52:23 -06:00
vec_resize_to_zero.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
verbose_file_reads.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
wildcard_dependencies.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
wildcard_imports.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
write.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
zero_div_zero.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00
zero_sized_map_values.rs Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup 2021-12-06 12:33:31 +01:00