Skip to content

Commit 50b0025

Browse files
committed
Auto merge of #97730 - flip1995:clippyup, r=Manishearth
Update Clippy r? `@Manishearth` This includes a bit bigger `Cargo.lock` update.
2 parents 357bc27 + 9525e0c commit 50b0025

File tree

271 files changed

+7545
-2654
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+7545
-2654
lines changed

Cargo.lock

+87-32
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ dependencies = [
354354
"percent-encoding 2.1.0",
355355
"pretty_env_logger",
356356
"rustc-workspace-hack",
357-
"rustfix 0.6.0",
357+
"rustfix",
358358
"semver",
359359
"serde",
360360
"serde_ignored",
@@ -638,7 +638,7 @@ dependencies = [
638638
"futures 0.3.19",
639639
"if_chain",
640640
"itertools",
641-
"parking_lot",
641+
"parking_lot 0.12.1",
642642
"quote",
643643
"regex",
644644
"rustc-semver",
@@ -658,7 +658,7 @@ name = "clippy_dev"
658658
version = "0.0.1"
659659
dependencies = [
660660
"aho-corasick",
661-
"clap 2.34.0",
661+
"clap 3.1.1",
662662
"indoc",
663663
"itertools",
664664
"opener",
@@ -767,7 +767,7 @@ dependencies = [
767767
"libc",
768768
"miow",
769769
"regex",
770-
"rustfix 0.6.0",
770+
"rustfix",
771771
"serde",
772772
"serde_json",
773773
"tracing",
@@ -779,9 +779,9 @@ dependencies = [
779779

780780
[[package]]
781781
name = "compiletest_rs"
782-
version = "0.7.1"
782+
version = "0.8.0"
783783
source = "registry+https://github.com/rust-lang/crates.io-index"
784-
checksum = "29843cb8d351febf86557681d049d1e1652b81a086a190fa1173c07fd17fbf83"
784+
checksum = "262134ef87408da1ddfe45e33daa0ca43b75286d6b1076446e602d264cf9847e"
785785
dependencies = [
786786
"diff",
787787
"filetime",
@@ -791,7 +791,7 @@ dependencies = [
791791
"log",
792792
"miow",
793793
"regex",
794-
"rustfix 0.5.1",
794+
"rustfix",
795795
"serde",
796796
"serde_derive",
797797
"serde_json",
@@ -2041,7 +2041,7 @@ dependencies = [
20412041
"jsonrpc-server-utils",
20422042
"log",
20432043
"parity-tokio-ipc",
2044-
"parking_lot",
2044+
"parking_lot 0.11.2",
20452045
"tower-service",
20462046
]
20472047

@@ -2055,7 +2055,7 @@ dependencies = [
20552055
"jsonrpc-core",
20562056
"lazy_static",
20572057
"log",
2058-
"parking_lot",
2058+
"parking_lot 0.11.2",
20592059
"rand 0.7.3",
20602060
"serde",
20612061
]
@@ -2203,10 +2203,11 @@ version = "0.1.0"
22032203

22042204
[[package]]
22052205
name = "lock_api"
2206-
version = "0.4.5"
2206+
version = "0.4.7"
22072207
source = "registry+https://github.com/rust-lang/crates.io-index"
2208-
checksum = "712a4d093c9976e24e7dbca41db895dabcbac38eb5f4045393d17a95bdfb1109"
2208+
checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53"
22092209
dependencies = [
2210+
"autocfg",
22102211
"scopeguard",
22112212
]
22122213

@@ -2341,7 +2342,7 @@ checksum = "78f7a41bc6f856a2cf0e95094ad5121f82500e2d9a0f3c0171d98f6566d8117d"
23412342
dependencies = [
23422343
"log",
23432344
"memmap2",
2344-
"parking_lot",
2345+
"parking_lot 0.11.2",
23452346
"perf-event-open-sys",
23462347
"rustc-hash",
23472348
"smallvec",
@@ -2355,7 +2356,7 @@ checksum = "bd460fad6e55ca82fa0cd9dab0d315294188fd9ec6efbf4105e5635d4872ef9c"
23552356
dependencies = [
23562357
"log",
23572358
"memmap2",
2358-
"parking_lot",
2359+
"parking_lot 0.11.2",
23592360
"perf-event-open-sys",
23602361
"rustc-hash",
23612362
"smallvec",
@@ -2704,7 +2705,17 @@ checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
27042705
dependencies = [
27052706
"instant",
27062707
"lock_api",
2707-
"parking_lot_core",
2708+
"parking_lot_core 0.8.5",
2709+
]
2710+
2711+
[[package]]
2712+
name = "parking_lot"
2713+
version = "0.12.1"
2714+
source = "registry+https://github.com/rust-lang/crates.io-index"
2715+
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
2716+
dependencies = [
2717+
"lock_api",
2718+
"parking_lot_core 0.9.3",
27082719
]
27092720

27102721
[[package]]
@@ -2721,6 +2732,19 @@ dependencies = [
27212732
"winapi",
27222733
]
27232734

2735+
[[package]]
2736+
name = "parking_lot_core"
2737+
version = "0.9.3"
2738+
source = "registry+https://github.com/rust-lang/crates.io-index"
2739+
checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929"
2740+
dependencies = [
2741+
"cfg-if 1.0.0",
2742+
"libc",
2743+
"redox_syscall",
2744+
"smallvec",
2745+
"windows-sys",
2746+
]
2747+
27242748
[[package]]
27252749
name = "pathdiff"
27262750
version = "0.2.1"
@@ -3732,7 +3756,7 @@ dependencies = [
37323756
"libc",
37333757
"measureme 10.0.0",
37343758
"memmap2",
3735-
"parking_lot",
3759+
"parking_lot 0.11.2",
37363760
"rustc-hash",
37373761
"rustc-rayon",
37383762
"rustc-rayon-core",
@@ -4316,7 +4340,7 @@ dependencies = [
43164340
name = "rustc_query_system"
43174341
version = "0.0.0"
43184342
dependencies = [
4319-
"parking_lot",
4343+
"parking_lot 0.11.2",
43204344
"rustc-rayon-core",
43214345
"rustc_arena",
43224346
"rustc_ast",
@@ -4619,21 +4643,9 @@ dependencies = [
46194643

46204644
[[package]]
46214645
name = "rustfix"
4622-
version = "0.5.1"
4623-
source = "registry+https://github.com/rust-lang/crates.io-index"
4624-
checksum = "f2c50b74badcddeb8f7652fa8323ce440b95286f8e4b64ebfd871c609672704e"
4625-
dependencies = [
4626-
"anyhow",
4627-
"log",
4628-
"serde",
4629-
"serde_json",
4630-
]
4631-
4632-
[[package]]
4633-
name = "rustfix"
4634-
version = "0.6.0"
4646+
version = "0.6.1"
46354647
source = "registry+https://github.com/rust-lang/crates.io-index"
4636-
checksum = "6f0be05fc0675ef4f47119dc39cfc46636bb77d4fc4ef1bd851b9c3f7697f32a"
4648+
checksum = "ecd2853d9e26988467753bd9912c3a126f642d05d229a4b53f5752ee36c56481"
46374649
dependencies = [
46384650
"anyhow",
46394651
"log",
@@ -5023,7 +5035,7 @@ checksum = "33994d0838dc2d152d17a62adf608a869b5e846b65b389af7f3dbc1de45c5b26"
50235035
dependencies = [
50245036
"lazy_static",
50255037
"new_debug_unreachable",
5026-
"parking_lot",
5038+
"parking_lot 0.11.2",
50275039
"phf_shared",
50285040
"precomputed-hash",
50295041
"serde",
@@ -5467,7 +5479,7 @@ dependencies = [
54675479
"ansi_term",
54685480
"lazy_static",
54695481
"matchers",
5470-
"parking_lot",
5482+
"parking_lot 0.11.2",
54715483
"regex",
54725484
"sharded-slab",
54735485
"smallvec",
@@ -5869,6 +5881,49 @@ version = "0.4.0"
58695881
source = "registry+https://github.com/rust-lang/crates.io-index"
58705882
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
58715883

5884+
[[package]]
5885+
name = "windows-sys"
5886+
version = "0.36.1"
5887+
source = "registry+https://github.com/rust-lang/crates.io-index"
5888+
checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2"
5889+
dependencies = [
5890+
"windows_aarch64_msvc",
5891+
"windows_i686_gnu",
5892+
"windows_i686_msvc",
5893+
"windows_x86_64_gnu",
5894+
"windows_x86_64_msvc",
5895+
]
5896+
5897+
[[package]]
5898+
name = "windows_aarch64_msvc"
5899+
version = "0.36.1"
5900+
source = "registry+https://github.com/rust-lang/crates.io-index"
5901+
checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47"
5902+
5903+
[[package]]
5904+
name = "windows_i686_gnu"
5905+
version = "0.36.1"
5906+
source = "registry+https://github.com/rust-lang/crates.io-index"
5907+
checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6"
5908+
5909+
[[package]]
5910+
name = "windows_i686_msvc"
5911+
version = "0.36.1"
5912+
source = "registry+https://github.com/rust-lang/crates.io-index"
5913+
checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024"
5914+
5915+
[[package]]
5916+
name = "windows_x86_64_gnu"
5917+
version = "0.36.1"
5918+
source = "registry+https://github.com/rust-lang/crates.io-index"
5919+
checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1"
5920+
5921+
[[package]]
5922+
name = "windows_x86_64_msvc"
5923+
version = "0.36.1"
5924+
source = "registry+https://github.com/rust-lang/crates.io-index"
5925+
checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"
5926+
58725927
[[package]]
58735928
name = "xattr"
58745929
version = "0.2.2"

src/tools/clippy/CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -3276,9 +3276,11 @@ Released 2018-09-13
32763276
<!-- begin autogenerated links to lint list -->
32773277
[`absurd_extreme_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons
32783278
[`allow_attributes_without_reason`]: https://rust-lang.github.io/rust-clippy/master/index.html#allow_attributes_without_reason
3279+
[`almost_complete_letter_range`]: https://rust-lang.github.io/rust-clippy/master/index.html#almost_complete_letter_range
32793280
[`almost_swapped`]: https://rust-lang.github.io/rust-clippy/master/index.html#almost_swapped
32803281
[`approx_constant`]: https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant
32813282
[`as_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#as_conversions
3283+
[`as_underscore`]: https://rust-lang.github.io/rust-clippy/master/index.html#as_underscore
32823284
[`assertions_on_constants`]: https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants
32833285
[`assign_op_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
32843286
[`assign_ops`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_ops
@@ -3296,6 +3298,7 @@ Released 2018-09-13
32963298
[`bool_assert_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
32973299
[`bool_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
32983300
[`borrow_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
3301+
[`borrow_deref_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
32993302
[`borrow_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
33003303
[`borrowed_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
33013304
[`box_collection`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_collection
@@ -3362,6 +3365,7 @@ Released 2018-09-13
33623365
[`disallowed_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_type
33633366
[`disallowed_types`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types
33643367
[`diverging_sub_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression
3368+
[`doc_link_with_quotes`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_link_with_quotes
33653369
[`doc_markdown`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
33663370
[`double_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_comparisons
33673371
[`double_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
@@ -3435,6 +3439,7 @@ Released 2018-09-13
34353439
[`from_over_into`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
34363440
[`from_str_radix_10`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10
34373441
[`future_not_send`]: https://rust-lang.github.io/rust-clippy/master/index.html#future_not_send
3442+
[`get_first`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_first
34383443
[`get_last_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_last_with_len
34393444
[`get_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap
34403445
[`identity_conversion`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion
@@ -3556,6 +3561,7 @@ Released 2018-09-13
35563561
[`min_max`]: https://rust-lang.github.io/rust-clippy/master/index.html#min_max
35573562
[`misaligned_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#misaligned_transmute
35583563
[`mismatched_target_os`]: https://rust-lang.github.io/rust-clippy/master/index.html#mismatched_target_os
3564+
[`mismatching_type_param_order`]: https://rust-lang.github.io/rust-clippy/master/index.html#mismatching_type_param_order
35593565
[`misrefactored_assign_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#misrefactored_assign_op
35603566
[`missing_const_for_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn
35613567
[`missing_docs_in_private_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items
@@ -3613,6 +3619,7 @@ Released 2018-09-13
36133619
[`new_without_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
36143620
[`new_without_default_derive`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive
36153621
[`no_effect`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect
3622+
[`no_effect_replace`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_replace
36163623
[`no_effect_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding
36173624
[`non_ascii_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_ascii_literal
36183625
[`non_octal_unix_permissions`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_octal_unix_permissions
@@ -3729,7 +3736,6 @@ Released 2018-09-13
37293736
[`skip_while_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#skip_while_next
37303737
[`slow_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization
37313738
[`stable_sort_primitive`]: https://rust-lang.github.io/rust-clippy/master/index.html#stable_sort_primitive
3732-
[`significant_drop_in_scrutinee`]: https://rust-lang.github.io/rust-clippy/master/index.html#significant_drop_in_scrutinee
37333739
[`str_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#str_to_string
37343740
[`string_add`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add
37353741
[`string_add_assign`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add_assign
@@ -3750,6 +3756,7 @@ Released 2018-09-13
37503756
[`suspicious_operation_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_operation_groupings
37513757
[`suspicious_splitn`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_splitn
37523758
[`suspicious_unary_op_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting
3759+
[`swap_ptr_to_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#swap_ptr_to_ref
37533760
[`tabs_in_doc_comments`]: https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
37543761
[`temporary_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_assignment
37553762
[`temporary_cstring_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_cstring_as_ptr
@@ -3820,6 +3827,7 @@ Released 2018-09-13
38203827
[`unused_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_collect
38213828
[`unused_io_amount`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
38223829
[`unused_label`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_label
3830+
[`unused_rounding`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_rounding
38233831
[`unused_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
38243832
[`unused_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
38253833
[`unusual_byte_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings

src/tools/clippy/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tempfile = { version = "3.2", optional = true }
2828
termize = "0.1"
2929

3030
[dev-dependencies]
31-
compiletest_rs = { version = "0.7.1", features = ["tmp"] }
31+
compiletest_rs = { version = "0.8", features = ["tmp"] }
3232
tester = "0.9"
3333
regex = "1.5"
3434
# This is used by the `collect-metadata` alias.
@@ -48,7 +48,7 @@ quote = "1.0"
4848
serde = { version = "1.0.125", features = ["derive"] }
4949
syn = { version = "1.0", features = ["full"] }
5050
futures = "0.3"
51-
parking_lot = "0.11.2"
51+
parking_lot = "0.12"
5252
tokio = { version = "1", features = ["io-util"] }
5353
rustc-semver = "1.1"
5454

src/tools/clippy/clippy_dev/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55

66
[dependencies]
77
aho-corasick = "0.7"
8-
clap = "2.33"
8+
clap = "3.1"
99
indoc = "1.0"
1010
itertools = "0.10.1"
1111
opener = "0.5"

0 commit comments

Comments
 (0)