1 enable features needed by rustfmt to make build system happy and speedup build.
2 this is what rustc_workspace_hack does in the upstream build.
4 diff --git a/src/tools/clippy/clippy_lints/Cargo.toml b/src/tools/clippy/clippy_lints/Cargo.toml
5 index e959c1a6511..39308996342 100644
6 --- a/src/tools/clippy/clippy_lints/Cargo.toml
7 +++ b/src/tools/clippy/clippy_lints/Cargo.toml
8 @@ -25,7 +25,7 @@ pulldown-cmark = { version = "0.8", default-features = false }
9 quine-mc_cluskey = "0.2.2"
11 serde = { version = "1.0", features = ["derive"] }
12 -smallvec = { version = "1", features = ["union"] }
13 +smallvec = { version = "1", features = ["may_dangle", "union"] }
15 unicode-normalization = "0.1"
17 diff --git a/src/tools/rustfmt/Cargo.toml b/src/tools/rustfmt/Cargo.toml
18 index 0f5bec2dcca..c9a64f05949 100644
19 --- a/src/tools/rustfmt/Cargo.toml
20 +++ b/src/tools/rustfmt/Cargo.toml
21 @@ -37,7 +37,7 @@ generic-simd = ["bytecount/generic-simd"]
24 serde = { version = "1.0", features = ["derive"] }
26 +serde_json = { version = "1.0", features = ["unbounded_depth"] }
27 unicode-segmentation = "1.0.0"