Skip to content

Commit c6f32f3

Browse files
committed
Auto merge of #88517 - smoelius:without-patch-versions, r=flip1995
Update Clippy dependencies without patch versions Trial run for rust-lang/rust-clippy#7606
2 parents 96dee28 + bd4b17a commit c6f32f3

File tree

8 files changed

+44
-75
lines changed

8 files changed

+44
-75
lines changed

Diff for: Cargo.lock

+8-31
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ dependencies = [
2626

2727
[[package]]
2828
name = "aho-corasick"
29-
version = "0.7.13"
29+
version = "0.7.18"
3030
source = "registry+https://github.com/rust-lang/crates.io-index"
31-
checksum = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86"
31+
checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
3232
dependencies = [
3333
"memchr",
3434
]
@@ -559,7 +559,7 @@ dependencies = [
559559
"cargo_metadata 0.12.0",
560560
"clippy_lints",
561561
"clippy_utils",
562-
"compiletest_rs 0.6.0",
562+
"compiletest_rs",
563563
"derive-new",
564564
"filetime",
565565
"if_chain",
@@ -581,7 +581,7 @@ version = "0.0.1"
581581
dependencies = [
582582
"bytecount",
583583
"clap",
584-
"itertools 0.9.0",
584+
"itertools 0.10.1",
585585
"opener",
586586
"regex",
587587
"shell-escape",
@@ -595,7 +595,7 @@ dependencies = [
595595
"cargo_metadata 0.12.0",
596596
"clippy_utils",
597597
"if_chain",
598-
"itertools 0.9.0",
598+
"itertools 0.10.1",
599599
"pulldown-cmark 0.8.0",
600600
"quine-mc_cluskey",
601601
"regex-syntax",
@@ -687,29 +687,6 @@ dependencies = [
687687
"winapi",
688688
]
689689

690-
[[package]]
691-
name = "compiletest_rs"
692-
version = "0.6.0"
693-
source = "registry+https://github.com/rust-lang/crates.io-index"
694-
checksum = "0086d6ad78cf409c3061618cd98e2789d5c9ce598fc9651611cf62eae0a599cb"
695-
dependencies = [
696-
"diff",
697-
"filetime",
698-
"getopts",
699-
"lazy_static",
700-
"libc",
701-
"log",
702-
"miow",
703-
"regex",
704-
"rustfix 0.5.1",
705-
"serde",
706-
"serde_derive",
707-
"serde_json",
708-
"tempfile",
709-
"tester",
710-
"winapi",
711-
]
712-
713690
[[package]]
714691
name = "compiletest_rs"
715692
version = "0.7.0"
@@ -2272,7 +2249,7 @@ name = "miri"
22722249
version = "0.1.0"
22732250
dependencies = [
22742251
"colored",
2275-
"compiletest_rs 0.7.0",
2252+
"compiletest_rs",
22762253
"env_logger 0.8.1",
22772254
"getrandom 0.2.0",
22782255
"hex 0.4.2",
@@ -3005,9 +2982,9 @@ dependencies = [
30052982

30062983
[[package]]
30072984
name = "regex"
3008-
version = "1.4.6"
2985+
version = "1.5.4"
30092986
source = "registry+https://github.com/rust-lang/crates.io-index"
3010-
checksum = "2a26af418b574bd56588335b3a3659a65725d4e636eb1016c2f9e3b38c7cc759"
2987+
checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
30112988
dependencies = [
30122989
"aho-corasick",
30132990
"memchr",

Diff for: src/tools/clippy/Cargo.toml

+10-12
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,35 @@ name = "clippy-driver"
2121
path = "src/driver.rs"
2222

2323
[dependencies]
24-
# begin automatic update
25-
clippy_lints = { version = "0.1.50", path = "clippy_lints" }
26-
# end automatic update
24+
clippy_lints = { version = "0.1", path = "clippy_lints" }
2725
semver = "0.11"
28-
rustc_tools_util = { version = "0.2.0", path = "rustc_tools_util" }
29-
tempfile = { version = "3.1.0", optional = true }
26+
rustc_tools_util = { version = "0.2", path = "rustc_tools_util" }
27+
tempfile = { version = "3.2", optional = true }
3028

3129
[dev-dependencies]
3230
cargo_metadata = "0.12"
33-
compiletest_rs = { version = "0.6.0", features = ["tmp"] }
31+
compiletest_rs = { version = "0.7", features = ["tmp"] }
3432
tester = "0.9"
35-
regex = "1.4"
33+
regex = "1.5"
3634
# This is used by the `collect-metadata` alias.
3735
filetime = "0.2"
3836

3937
# A noop dependency that changes in the Rust repository, it's a bit of a hack.
4038
# See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`
4139
# for more information.
42-
rustc-workspace-hack = "1.0.0"
40+
rustc-workspace-hack = "1.0"
4341

4442
# UI test dependencies
4543
clippy_utils = { path = "clippy_utils" }
4644
derive-new = "0.5"
4745
if_chain = "1.0"
48-
itertools = "0.10.1"
49-
quote = "1"
46+
itertools = "0.10"
47+
quote = "1.0"
5048
serde = { version = "1.0", features = ["derive"] }
51-
syn = { version = "1", features = ["full"] }
49+
syn = { version = "1.0", features = ["full"] }
5250

5351
[build-dependencies]
54-
rustc_tools_util = { version = "0.2.0", path = "rustc_tools_util" }
52+
rustc_tools_util = { version = "0.2", path = "rustc_tools_util" }
5553

5654
[features]
5755
deny-warnings = ["clippy_lints/deny-warnings"]

Diff for: src/tools/clippy/clippy_dev/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ edition = "2018"
66
[dependencies]
77
bytecount = "0.6"
88
clap = "2.33"
9-
itertools = "0.9"
9+
itertools = "0.10"
1010
opener = "0.5"
11-
regex = "1"
11+
regex = "1.5"
1212
shell-escape = "0.1"
13-
walkdir = "2"
13+
walkdir = "2.3"
1414

1515
[features]
1616
deny-warnings = []

Diff for: src/tools/clippy/clippy_dummy/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ keywords = ["clippy", "lint", "plugin"]
1313
categories = ["development-tools", "development-tools::cargo-plugins"]
1414

1515
[build-dependencies]
16-
term = "0.6"
16+
term = "0.7"

Diff for: src/tools/clippy/clippy_lints/Cargo.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ edition = "2018"
1111
[dependencies]
1212
cargo_metadata = "0.12"
1313
clippy_utils = { path = "../clippy_utils" }
14-
if_chain = "1.0.0"
15-
itertools = "0.9"
14+
if_chain = "1.0"
15+
itertools = "0.10"
1616
pulldown-cmark = { version = "0.8", default-features = false }
17-
quine-mc_cluskey = "0.2.2"
17+
quine-mc_cluskey = "0.2"
1818
regex-syntax = "0.6"
1919
serde = { version = "1.0", features = ["derive"] }
2020
serde_json = { version = "1.0", optional = true }
21-
toml = "0.5.3"
21+
toml = "0.5"
2222
unicode-normalization = "0.1"
23-
unicode-script = { version = "0.5.3", default-features = false }
23+
unicode-script = { version = "0.5", default-features = false }
2424
semver = "0.11"
25-
rustc-semver = "1.1.0"
25+
rustc-semver = "1.1"
2626
# NOTE: cargo requires serde feat in its url dep
2727
# see <https://github.com/rust-lang/rust/pull/63587#issuecomment-522343864>
28-
url = { version = "2.1.0", features = ["serde"] }
28+
url = { version = "2.2", features = ["serde"] }
2929

3030
[features]
3131
deny-warnings = ["clippy_utils/deny-warnings"]

Diff for: src/tools/clippy/clippy_lints/src/cargo_common_metadata.rs

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! lint on missing cargo common metadata
22
3-
use std::path::PathBuf;
4-
53
use clippy_utils::{diagnostics::span_lint, is_lint_allowed};
64
use rustc_hir::{hir_id::CRATE_HIR_ID, Crate};
75
use rustc_lint::{LateContext, LateLintPass};
@@ -69,12 +67,8 @@ fn missing_warning(cx: &LateContext<'_>, package: &cargo_metadata::Package, fiel
6967
span_lint(cx, CARGO_COMMON_METADATA, DUMMY_SP, &message);
7068
}
7169

72-
fn is_empty_str(value: &Option<String>) -> bool {
73-
value.as_ref().map_or(true, String::is_empty)
74-
}
75-
76-
fn is_empty_path(value: &Option<PathBuf>) -> bool {
77-
value.as_ref().and_then(|x| x.to_str()).map_or(true, str::is_empty)
70+
fn is_empty_str<T: AsRef<std::ffi::OsStr>>(value: &Option<T>) -> bool {
71+
value.as_ref().map_or(true, |s| s.as_ref().is_empty())
7872
}
7973

8074
fn is_empty_vec(value: &[String]) -> bool {
@@ -98,15 +92,15 @@ impl LateLintPass<'_> for CargoCommonMetadata {
9892
missing_warning(cx, &package, "package.description");
9993
}
10094

101-
if is_empty_str(&package.license) && is_empty_path(&package.license_file) {
95+
if is_empty_str(&package.license) && is_empty_str(&package.license_file) {
10296
missing_warning(cx, &package, "either package.license or package.license_file");
10397
}
10498

10599
if is_empty_str(&package.repository) {
106100
missing_warning(cx, &package, "package.repository");
107101
}
108102

109-
if is_empty_path(&package.readme) {
103+
if is_empty_str(&package.readme) {
110104
missing_warning(cx, &package, "package.readme");
111105
}
112106

Diff for: src/tools/clippy/clippy_utils/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ edition = "2018"
55
publish = false
66

77
[dependencies]
8-
if_chain = "1.0.0"
9-
rustc-semver="1.1.0"
8+
if_chain = "1.0"
9+
rustc-semver = "1.1"
1010

1111
[features]
1212
deny-warnings = []

Diff for: src/tools/clippy/lintcheck/Cargo.toml

+9-9
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ publish = false
1111

1212
[dependencies]
1313
clap = "2.33"
14-
flate2 = {version = "1.0.19"}
15-
fs_extra = {version = "1.2.0"}
16-
rayon = {version = "1.5.0"}
17-
serde = {version = "1.0", features = ["derive"]}
18-
serde_json = {version = "1.0"}
19-
tar = {version = "0.4.30"}
20-
toml = {version = "0.5"}
21-
ureq = {version = "2.0.0-rc3"}
22-
walkdir = {version = "2.3.2"}
14+
flate2 = "1.0"
15+
fs_extra = "1.2"
16+
rayon = "1.5"
17+
serde = { version = "1.0", features = ["derive"] }
18+
serde_json = "1.0"
19+
tar = "0.4"
20+
toml = "0.5"
21+
ureq = "2.2"
22+
walkdir = "2.3"
2323

2424
[features]
2525
deny-warnings = []

0 commit comments

Comments
 (0)