Backwards-compat for cargo 0.47
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 14 Jul 2022 11:17:39 +0000 (13:17 +0200)
committerFabian Gruenbichler <f.gruenbichler@proxmox.com>
Mon, 5 Sep 2022 08:03:18 +0000 (09:03 +0100)
  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.

Gbp-Pq: Name d-bootstrap-old-cargo-compat.patch

src/bootstrap/doc.rs

index 722dba9d9a4bae04fd9023d8ed8092e95f83c2ab..84997ac3966aa921578e3df118a23424c2794676 100644 (file)
@@ -443,7 +443,6 @@ impl Step for Std {
             cargo
                 .arg("-p")
                 .arg(package)
-                .arg("-Zskip-rustdoc-fingerprint")
                 .arg("--")
                 .arg("--markdown-css")
                 .arg("rust.css")
@@ -584,7 +583,6 @@ impl Step for Rustc {
         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`.
@@ -713,7 +711,6 @@ macro_rules! tool_doc {
                     &[],
                 );
 
-                cargo.arg("-Zskip-rustdoc-fingerprint");
                 // Only include compiler crates, no dependencies of those, such as `libc`.
                 cargo.arg("--no-deps");
                 $(