d-0000-ignore-removed-submodules
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)
committerXimin Luo <infinity0@debian.org>
Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)
Gbp-Pq: Name d-0000-ignore-removed-submodules.patch

Cargo.toml
src/bootstrap/bootstrap.py
src/bootstrap/builder.rs
src/bootstrap/doc.rs
src/bootstrap/test.rs
src/bootstrap/tool.rs
src/doc/index.md
src/tools/rustbook/Cargo.toml
src/tools/tidy/src/deps.rs

index a242f090fbc07e889723c334dcb8689b3314be7b..3cfadf9428d4f847a7eed4b0bd0c1f266fdbab0e 100644 (file)
@@ -6,7 +6,6 @@ members = [
   "src/libtest",
   "src/librustc_codegen_llvm",
   "src/tools/cargotest",
-  "src/tools/clippy",
   "src/tools/compiletest",
   "src/tools/error_index_generator",
   "src/tools/linkchecker",
@@ -14,14 +13,8 @@ members = [
   "src/tools/unstable-book-gen",
   "src/tools/tidy",
   "src/tools/build-manifest",
-  "src/tools/remote-test-client",
-  "src/tools/remote-test-server",
   "src/tools/rust-installer",
-  "src/tools/cargo",
   "src/tools/rustdoc",
-  "src/tools/rls",
-  "src/tools/rustfmt",
-  "src/tools/miri",
   "src/tools/rustdoc-themes",
 ]
 exclude = [
@@ -46,29 +39,10 @@ debug-assertions = false
 debug = false
 debug-assertions = false
 
-# We want the RLS to use the version of Cargo that we've got vendored in this
-# repository to ensure that the same exact version of Cargo is used by both the
-# RLS and the Cargo binary itself. The RLS depends on Cargo as a git repository
-# so we use a `[patch]` here to override the github repository with our local
-# vendored copy.
-[patch."https://github.com/rust-lang/cargo"]
-cargo = { path = "src/tools/cargo" }
-
 [patch.crates-io]
-# Similar to Cargo above we want the RLS to use a vendored version of `rustfmt`
-# that we're shipping as well (to ensure that the rustfmt in RLS and the
-# `rustfmt` executable are the same exact version).
-rustfmt-nightly = { path = "src/tools/rustfmt" }
-
-# See comments in `src/tools/rustc-workspace-hack/README.md` for what's going on
-# here
-rustc-workspace-hack = { path = 'src/tools/rustc-workspace-hack' }
 
 # See comments in `tools/rustc-std-workspace-core/README.md` for what's going on
 # here
 rustc-std-workspace-core = { path = 'src/tools/rustc-std-workspace-core' }
 rustc-std-workspace-alloc = { path = 'src/tools/rustc-std-workspace-alloc' }
 rustc-std-workspace-std = { path = 'src/tools/rustc-std-workspace-std' }
-
-[patch."https://github.com/rust-lang/rust-clippy"]
-clippy_lints = { path = "src/tools/clippy/clippy_lints" }
index d2a0f107a28b511c84896114a024d6d399edd271..d7eb57a2c33536c7dcfc8b64b8d4ada2a5486eca 100644 (file)
@@ -656,10 +656,6 @@ class RustBuild(object):
                 os.path.join(self.rust_root, "src/bootstrap/Cargo.toml")]
         for _ in range(1, self.verbose):
             args.append("--verbose")
-        if self.use_locked_deps:
-            args.append("--locked")
-        if self.use_vendored_sources:
-            args.append("--frozen")
         run(args, env=env, verbose=self.verbose)
 
     def build_triple(self):
index 2edcef203ad2680ad8546d30c84c9e0c9cf47a49..a7f819e5f0be7698f410e4067902ca4906c40e8a 100644 (file)
@@ -454,8 +454,6 @@ impl<'a> Builder<'a> {
                 dist::Miri,
                 dist::LlvmTools,
                 dist::Lldb,
-                dist::Extended,
-                dist::HashSign
             ),
             Kind::Install => describe!(
                 install::Docs,
@@ -1235,10 +1233,7 @@ impl<'a> Builder<'a> {
             }
         }
 
-        if self.config.locked_deps {
-            cargo.arg("--locked");
-        }
-        if self.config.vendor || self.is_sudo {
+        if self.is_sudo {
             cargo.arg("--frozen");
         }
 
index 331fc3acd9dd944e390b80c675dacebc19a23a31..f0076dbbaef4ed757e65013021347452a4a888e4 100644 (file)
@@ -113,7 +113,7 @@ pub struct CargoBook {
 
 impl Step for CargoBook {
     type Output = ();
-    const DEFAULT: bool = true;
+    const DEFAULT: bool = false;
 
     fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
         let builder = run.builder;
index 60f0dccdb070ecc37b08ca66a689650e05a3fb32..3ab36cbe94e540af086a66fa9c8919ed51fce647 100644 (file)
@@ -1585,14 +1585,14 @@ impl Step for RustcGuide {
     }
 
     fn run(self, builder: &Builder<'_>) {
-        let src = builder.src.join("src/doc/rustc-guide");
-        let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
-        let toolstate = if try_run(builder, rustbook_cmd.arg("linkcheck").arg(&src)) {
-            ToolState::TestPass
-        } else {
-            ToolState::TestFail
-        };
-        builder.save_toolstate("rustc-guide", toolstate);
+        //let src = builder.src.join("src/doc/rustc-guide");
+        //let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
+        //let toolstate = if try_run(builder, rustbook_cmd.arg("linkcheck").arg(&src)) {
+        //    ToolState::TestPass
+        //} else {
+        //    ToolState::TestFail
+        //};
+        builder.save_toolstate("rustc-guide", ToolState::TestPass);
     }
 }
 
index 815498047fd5d160ac9afef8dfcc2060558c7743..bad3acb899c9be576cd281d75e1311941e4c207b 100644 (file)
@@ -277,14 +277,14 @@ pub fn prepare_tool_cargo(
 }
 
 fn rustbook_features() -> Vec<String> {
-    let mut features = Vec::new();
+    let features = Vec::new();
 
     // Due to CI budged and risk of spurious failures we want to limit jobs running this check.
     // At same time local builds should run it regardless of the platform.
     // `CiEnv::None` means it's local build and `CHECK_LINKS` is defined in x86_64-gnu-tools to
     // explicitly enable it on single job
     if CiEnv::current() == CiEnv::None || env::var("CHECK_LINKS").is_ok() {
-        features.push("linkcheck".to_string());
+    //    features.push("linkcheck".to_string());
     }
 
     features
index 0a2a80e8fd6e2b4d62dcf9a93f2dc5983b0da249..5861a0d1866c257dd6822c386b7b4a5c80244fd9 100644 (file)
@@ -87,7 +87,7 @@ accomplishing various tasks.
 
 ## The Cargo Book
 
-[The Cargo Book](cargo/index.html) is a guide to Cargo, Rust's build tool and dependency manager.
+[The Cargo Book](../../cargo-doc/doc/index.html) is a guide to Cargo, Rust's build tool and dependency manager.
 
 ## The Rustdoc Book
 
index 67da04dd67fc3c01868b3592ffde4cb826fca952..8fa91d924cc3e6e78776a67190fa4529ecf8d3c2 100644 (file)
@@ -12,11 +12,6 @@ linkcheck = []
 clap = "2.25.0"
 failure = "0.1"
 
-# A noop dependency that changes in the Rust repository, it's a bit of a hack.
-# See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`
-# for more information.
-rustc-workspace-hack = "1.0.0"
-
 [dependencies.mdbook]
 version = "0.3.5"
 default-features = false
index e6ea1c75e289957b9a50af558e12358e4b4f6827..df9aace424fc9c8875543d0078415a4ededcc582 100644 (file)
@@ -404,8 +404,8 @@ fn check_crate_duplicate(resolve: &Resolve, bad: &mut bool) {
         // to accidentally sneak into our dependency graph, in order to ensure we keep our CI times
         // under control.
 
-        "cargo",
-        "rustc-ap-syntax",
+        //"cargo",
+        //"rustc-ap-syntax",
     ];
     let mut name_to_id: HashMap<_, Vec<_>> = HashMap::new();
     for node in resolve.nodes.iter() {