Skip to content

Commit

Permalink
Auto merge of #71278 - matthiaskrgr:submodule_upd, r=Dylan-DPC
Browse files Browse the repository at this point in the history
submodules: update clippy from 6651c1b to 891e1a8

This PR gets `cargo clippy --fix -Zunstable-options` into nightly 🎉

Changes:
````
Polished lint and tests
Added final lint and tests
Added basic lint and tests
fix redundant_pattern_matching lint
add lint futures_not_send
Integrate more idiomatic rust changes.
Fix issue #4892.
cargo dev fmt
Cleanup: Rename 'db' variable to 'diag'
question_mark: don't add `as_ref()` for a call expression
unit_arg suggestion may be incorrect
readme: update to cargo clippy --fix command
CI: performing system upgrade fixes broken apt deps on ubuntu 32bit
Do not lint in macros for match lints
[fix] Minor typo in GH Actions 'clippy_dev'
Reenable rustfmt integration test
Add test to map_flatten with an Option
Lint map_flatten if caller is an Option
Apply suggestions from code review
manually fixing formatting at this point lol
fmt
rename field
revert the damn fmt changes
add some tests
split it up for testing but the merge broke tests
dogfood tasted bad
fix rustfmt issue
boycott manish
check for unstable options
Start work on clippy-fix as subcommand
````

Should be save to rollup since we are in no-toolstate-break week (I also didn't see any breakage when testing the clippy with  28742a1)
  • Loading branch information
bors committed Apr 18, 2020
2 parents 9d430cb + 56e0295 commit 339a938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/clippy
Submodule clippy updated 89 files
+3 −2 .github/workflows/clippy_bors.yml
+1 −1 .github/workflows/clippy_dev.yml
+2 −0 CHANGELOG.md
+2 −2 README.md
+5 −5 clippy_lints/src/assign_ops.rs
+5 −5 clippy_lints/src/attrs.rs
+2 −2 clippy_lints/src/bit_mask.rs
+5 −5 clippy_lints/src/booleans.rs
+2 −2 clippy_lints/src/collapsible_if.rs
+4 −4 clippy_lints/src/copies.rs
+4 −4 clippy_lints/src/derive.rs
+2 −2 clippy_lints/src/empty_enum.rs
+3 −3 clippy_lints/src/entry.rs
+36 −24 clippy_lints/src/eq_op.rs
+4 −4 clippy_lints/src/eta_reduction.rs
+3 −3 clippy_lints/src/fallible_impl_from.rs
+2 −2 clippy_lints/src/format.rs
+4 −4 clippy_lints/src/functions.rs
+113 −0 clippy_lints/src/future_not_send.rs
+6 −6 clippy_lints/src/identity_conversion.rs
+2 −2 clippy_lints/src/implicit_return.rs
+173 −0 clippy_lints/src/implicit_saturating_sub.rs
+2 −2 clippy_lints/src/inherent_impl.rs
+2 −2 clippy_lints/src/inline_fn_without_body.rs
+2 −2 clippy_lints/src/int_plus_one.rs
+2 −2 clippy_lints/src/large_const_arrays.rs
+5 −5 clippy_lints/src/large_enum_variant.rs
+3 −3 clippy_lints/src/let_if_seq.rs
+8 −0 clippy_lints/src/lib.rs
+18 −18 clippy_lints/src/loops.rs
+5 −5 clippy_lints/src/map_unit_fn.rs
+8 −4 clippy_lints/src/matches.rs
+2 −2 clippy_lints/src/mem_discriminant.rs
+2 −2 clippy_lints/src/mem_replace.rs
+3 −3 clippy_lints/src/methods/inefficient_to_string.rs
+27 −9 clippy_lints/src/methods/mod.rs
+2 −2 clippy_lints/src/methods/option_map_unwrap_or.rs
+10 −10 clippy_lints/src/misc.rs
+5 −5 clippy_lints/src/misc_early.rs
+6 −6 clippy_lints/src/modulo_arithmetic.rs
+4 −4 clippy_lints/src/needless_borrow.rs
+2 −2 clippy_lints/src/needless_borrowed_ref.rs
+7 −7 clippy_lints/src/needless_pass_by_value.rs
+4 −4 clippy_lints/src/new_without_default.rs
+4 −4 clippy_lints/src/non_copy_const.rs
+25 −1 clippy_lints/src/precedence.rs
+10 −10 clippy_lints/src/ptr.rs
+5 −3 clippy_lints/src/question_mark.rs
+5 −5 clippy_lints/src/ranges.rs
+4 −4 clippy_lints/src/redundant_clone.rs
+25 −13 clippy_lints/src/redundant_pattern_matching.rs
+2 −2 clippy_lints/src/redundant_pub_crate.rs
+14 −8 clippy_lints/src/redundant_static_lifetimes.rs
+12 −12 clippy_lints/src/returns.rs
+10 −10 clippy_lints/src/shadow.rs
+2 −2 clippy_lints/src/slow_vector_initialization.rs
+6 −6 clippy_lints/src/swap.rs
+20 −20 clippy_lints/src/transmute.rs
+28 −22 clippy_lints/src/types.rs
+2 −2 clippy_lints/src/unwrap.rs
+5 −5 clippy_lints/src/utils/attrs.rs
+38 −35 clippy_lints/src/utils/diagnostics.rs
+3 −3 clippy_lints/src/utils/sugg.rs
+14 −0 src/lintlist/mod.rs
+149 −42 src/main.rs
+79 −0 tests/ui/future_not_send.rs
+125 −0 tests/ui/future_not_send.stderr
+160 −0 tests/ui/implicit_saturating_sub.fixed
+206 −0 tests/ui/implicit_saturating_sub.rs
+188 −0 tests/ui/implicit_saturating_sub.stderr
+33 −0 tests/ui/infallible_destructuring_match.fixed
+33 −0 tests/ui/infallible_destructuring_match.rs
+3 −3 tests/ui/infallible_destructuring_match.stderr
+1 −0 tests/ui/map_flatten.fixed
+1 −0 tests/ui/map_flatten.rs
+7 −1 tests/ui/map_flatten.stderr
+10 −0 tests/ui/match_single_binding.fixed
+10 −0 tests/ui/match_single_binding.rs
+11 −11 tests/ui/match_single_binding.stderr
+16 −0 tests/ui/precedence.fixed
+16 −0 tests/ui/precedence.rs
+12 −0 tests/ui/question_mark.fixed
+14 −0 tests/ui/question_mark.rs
+9 −1 tests/ui/question_mark.stderr
+42 −9 tests/ui/redundant_pattern_matching.fixed
+26 −1 tests/ui/redundant_pattern_matching.rs
+64 −32 tests/ui/redundant_pattern_matching.stderr
+12 −0 tests/ui/rest_pat_in_fully_bound_structs.rs
+3 −3 tests/ui/rest_pat_in_fully_bound_structs.stderr

0 comments on commit 339a938

Please sign in to comment.