From: Debian Rust Maintainers Date: Sat, 2 Oct 2021 00:08:00 +0000 (+0100) Subject: d-0005-clippy-feature-sync X-Git-Tag: archive/raspbian/1.59.0+dfsg1-1_deb10u3+rpi1^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=438e9634cb7538c6529a5d8f5107e3f1ca997ddf;p=rustc-mozilla.git d-0005-clippy-feature-sync enable features needed by rustfmt to make build system happy and speedup build. this is what rustc_workspace_hack does in the upstream build. Gbp-Pq: Name d-0005-clippy-feature-sync.patch --- diff --git a/src/tools/clippy/Cargo.toml b/src/tools/clippy/Cargo.toml index e94b7e2a3..6ab5209b6 100644 --- a/src/tools/clippy/Cargo.toml +++ b/src/tools/clippy/Cargo.toml @@ -25,6 +25,7 @@ clippy_lints = { version = "0.1", path = "clippy_lints" } semver = "1.0" rustc_tools_util = { version = "0.2", path = "rustc_tools_util" } tempfile = { version = "3.2", optional = true } +memchr = { version = "2.4", default_features = false, features = ["use_std"] } [dev-dependencies] cargo_metadata = "0.14" @@ -41,7 +42,7 @@ if_chain = "1.0" itertools = "0.10" quote = "1.0" serde = { version = "1.0", features = ["derive"] } -syn = { version = "1.0", features = ["full"] } +syn = { version = "1.0", features = ["full", "visit"] } parking_lot = "0.11.2" [build-dependencies] diff --git a/src/tools/rustfmt/Cargo.toml b/src/tools/rustfmt/Cargo.toml index f92b1dc0c..9e3b2a76f 100644 --- a/src/tools/rustfmt/Cargo.toml +++ b/src/tools/rustfmt/Cargo.toml @@ -36,7 +36,7 @@ generic-simd = ["bytecount/generic-simd"] itertools = "0.9" toml = "0.5" serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" +serde_json = { version = "1.0", features = ["unbounded_depth"] } unicode-segmentation = "1.0.0" regex = "1.0" term = "0.6"