rust-clippy/clippy_lints/src
Jane Lusby 14feb3670f Lint for chaining flatten after map
This change adds a lint to check for instances of `map(..).flatten()`
that can be trivially shortened to `flat_map(..)`

Closes #3196
2018-09-24 14:29:16 -07:00
..
utils Merge pull request #3191 from vi/suggest_with_applicability 2018-09-23 15:45:55 +02:00
approx_const.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
arithmetic.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
assign_ops.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
attrs.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
bit_mask.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
blacklisted_name.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
block_in_if_condition.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
booleans.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
bytecount.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
collapsible_if.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
const_static_lifetime.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
consts.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
copies.rs Use span_suggestion_with_applicability instead of span_suggestion 2018-09-20 14:38:47 +02:00
copy_iterator.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
cyclomatic_complexity.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
default_trait_access.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
deprecated_lints.rs deprecate assign_ops lint 2018-08-13 16:12:41 -05:00
derive.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
doc.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
double_comparison.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
double_parens.rs Fix double_parens false positive 2018-09-22 17:20:34 +02:00
drop_forget_ref.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
duration_subsec.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
else_if_without_else.rs convert "".to_string() and "".to_owned() to String::new() 2018-09-15 11:20:35 +02:00
empty_enum.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
entry.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
enum_clike.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
enum_glob_use.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
enum_variants.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
eq_op.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
erasing_op.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
escape.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
eta_reduction.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
eval_order_dependence.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
excessive_precision.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
explicit_write.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
fallible_impl_from.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
format.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
formatting.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
functions.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
identity_conversion.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
identity_op.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
if_let_redundant_pattern_matching.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
if_not_else.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
indexing_slicing.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
infallible_destructuring_match.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
infinite_iter.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
inherent_impl.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
inline_fn_without_body.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
int_plus_one.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
invalid_ref.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
items_after_statements.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
large_enum_variant.rs Another Applicability adjustment 2018-09-20 14:38:48 +02:00
len_zero.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
let_if_seq.rs Applicability adjustment per additional comments 2018-09-20 14:38:48 +02:00
lib.rs Lint for chaining flatten after map 2018-09-24 14:29:16 -07:00
lifetimes.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
literal_representation.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
loops.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
map_clone.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
map_unit_fn.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
matches.rs Applicability adjustment per additional comments 2018-09-20 14:38:48 +02:00
mem_forget.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
mem_replace.rs mem_replace: fix grammar. 2018-09-19 14:54:38 -07:00
methods.rs Lint for chaining flatten after map 2018-09-24 14:29:16 -07:00
minmax.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
misc.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
misc_early.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
missing_doc.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
missing_inline.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
multiple_crate_versions.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
mut_mut.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
mut_reference.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
mutex_atomic.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
needless_bool.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
needless_borrow.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
needless_borrowed_ref.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
needless_continue.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
needless_pass_by_value.rs Fix indents 2018-09-20 14:38:48 +02:00
needless_update.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
neg_cmp_op_on_partial_ord.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
neg_multiply.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
new_without_default.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
no_effect.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
non_copy_const.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
non_expressive_names.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
ok_if_let.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
open_options.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
overflow_check_conditional.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
panic_unimplemented.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
partialeq_ne_impl.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
precedence.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
ptr.rs Fix indents 2018-09-20 14:38:48 +02:00
ptr_offset_with_cast.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
question_mark.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
ranges.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
redundant_field_names.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
reference.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
regex.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
replace_consts.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
returns.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
serde_api.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
shadow.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
strings.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
suspicious_trait_impl.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
swap.rs Fill in Applicability from review comments by @flip1995 2018-09-20 14:38:48 +02:00
temporary_assignment.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
transmute.rs Fix indents 2018-09-20 14:38:48 +02:00
trivially_copy_pass_by_ref.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
types.rs convert "".to_string() and "".to_owned() to String::new() 2018-09-15 11:20:35 +02:00
unicode.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
unsafe_removed_from_name.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
unused_io_amount.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
unused_label.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
unwrap.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
use_self.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
vec.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
write.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00
zero_div_zero.rs Reintroduce extern crate for non-Cargo dependencies. 2018-09-15 11:10:51 +03:00