summaryrefslogtreecommitdiffstats
path: root/debian/patches/d-bootstrap-old-cargo-compat.patch
blob: 463e70369be4dd49409decb79396e323e470116d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Date: Thu, 14 Jul 2022 13:17:39 +0200
Subject: Backwards-compat for cargo 0.47

  The flag being removed here was added in
  https://github.com/rust-lang/cargo/pull/9404 released in cargo 0.54
  
  This works around a feature introduced in this PR
  https://github.com/rust-lang/cargo/pull/8640 released in cargo 0.53
  
  Therefore it is not needed for Debian's current cargo 0.47.
  
  We can drop this patch when updating to cargo 0.54 and later.
---
 src/bootstrap/doc.rs | 3 ---
 1 file changed, 3 deletions(-)

--- a/src/bootstrap/doc.rs
+++ b/src/bootstrap/doc.rs
@@ -598,7 +598,6 @@
             .arg(&*target_dir.to_string_lossy())
             .arg("-p")
             .arg(package)
-            .arg("-Zskip-rustdoc-fingerprint")
             .arg("--")
             .arg("-Z")
             .arg("unstable-options")
@@ -695,7 +694,6 @@
         cargo.rustdocflag("--generate-link-to-definition");
         compile::rustc_cargo(builder, &mut cargo, target);
         cargo.arg("-Zunstable-options");
-        cargo.arg("-Zskip-rustdoc-fingerprint");
 
         // Only include compiler crates, no dependencies of those, such as `libc`.
         // Do link to dependencies on `docs.rs` however using `rustdoc-map`.
@@ -811,7 +809,6 @@
                     &[],
                 );
 
-                cargo.arg("-Zskip-rustdoc-fingerprint");
                 // Only include compiler crates, no dependencies of those, such as `libc`.
                 cargo.arg("--no-deps");
                 $(