]> git.lizzy.rs Git - rust.git/commitdiff
Make docs required again
authorBrian Anderson <banderson@mozilla.com>
Tue, 14 Mar 2017 19:31:20 +0000 (19:31 +0000)
committerBrian Anderson <banderson@mozilla.com>
Tue, 14 Mar 2017 19:31:20 +0000 (19:31 +0000)
src/tools/build-manifest/src/main.rs

index c2ec42195fcb7e16a76601780e46a10334e1ac60..adddd7b7e89b047030eeb63a0b32cb2aa18c017d 100644 (file)
@@ -250,12 +250,13 @@ fn build_manifest(&mut self) -> Manifest {
             let mut components = Vec::new();
             let mut extensions = Vec::new();
 
-            // rustc/rust-std/cargo are all required, and so is rust-mingw if it's
-            // available for the target.
+            // rustc/rust-std/cargo/docs are all required, and so is rust-mingw
+            // if it's available for the target.
             components.extend(vec![
                 Component { pkg: "rustc".to_string(), target: host.to_string() },
                 Component { pkg: "rust-std".to_string(), target: host.to_string() },
                 Component { pkg: "cargo".to_string(), target: host.to_string() },
+                Component { pkg: "rust-docs".to_string(), target: host.to_string() },
             ]);
             if host.contains("pc-windows-gnu") {
                 components.push(Component {
@@ -264,12 +265,6 @@ fn build_manifest(&mut self) -> Manifest {
                 });
             }
 
-            // Docs, other standard libraries, and the source package are all
-            // optional.
-            extensions.push(Component {
-                pkg: "rust-docs".to_string(),
-                target: host.to_string(),
-            });
             for target in TARGETS {
                 if target != host {
                     extensions.push(Component {