]> git.proxmox.com Git - rustc.git/commitdiff
sync clippy and rustfmt dep feature
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 16 Nov 2020 14:53:50 +0000 (15:53 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 26 Apr 2021 17:45:20 +0000 (19:45 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
debian/patches/d-0005-clippy-feature-sync.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/d-0005-clippy-feature-sync.patch b/debian/patches/d-0005-clippy-feature-sync.patch
new file mode 100644 (file)
index 0000000..1ee3952
--- /dev/null
@@ -0,0 +1,29 @@
+enable features needed by rustfmt to make build system happy and speedup build.
+this is what rustc_workspace_hack does in the upstream build.
+
+diff --git a/src/tools/clippy/clippy_lints/Cargo.toml b/src/tools/clippy/clippy_lints/Cargo.toml
+index e959c1a6511..39308996342 100644
+--- a/src/tools/clippy/clippy_lints/Cargo.toml
++++ b/src/tools/clippy/clippy_lints/Cargo.toml
+@@ -25,7 +25,7 @@ pulldown-cmark = { version = "0.8", default-features = false }
+ quine-mc_cluskey = "0.2.2"
+ regex-syntax = "0.6"
+ serde = { version = "1.0", features = ["derive"] }
+-smallvec = { version = "1", features = ["union"] }
++smallvec = { version = "1", features = ["may_dangle", "union"] }
+ toml = "0.5.3"
+ unicode-normalization = "0.1"
+ semver = "0.11"
+diff --git a/src/tools/rustfmt/Cargo.toml b/src/tools/rustfmt/Cargo.toml
+index 0f5bec2dcca..c9a64f05949 100644
+--- a/src/tools/rustfmt/Cargo.toml
++++ b/src/tools/rustfmt/Cargo.toml
+@@ -37,7 +37,7 @@ generic-simd = ["bytecount/generic-simd"]
+ itertools = "0.8"
+ 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"
index 4e451969f3ba0e7709221c05567979a79b1af4a6..a031b53fda6cf3cff0555a58c642ea129b5e70e9 100644 (file)
@@ -23,6 +23,7 @@ d-0002-pkg-config-no-special-snowflake.patch
 d-0003-mdbook-strip-embedded-libs.patch
 # Other patches needed by the full Debian build
 d-0004-cc-psm-rebuild-wasm32.patch
+d-0005-clippy-feature-sync.patch
 #d-use-system-compiler-rt.patch
 d-cargo-doc-paths.patch
 d-custom-debuginfo-path.patch