Skip to content

Commit b90dd33

Browse files
authored
Rollup merge of rust-lang#40526 - brson:docs-req, r=alexcrichton
Make docs required again Completely untested. Fixes rust-lang/rustup#903 r? @alexcrichton cc @steveklabnik
2 parents a58727c + 3554ff3 commit b90dd33

File tree

1 file changed

+3
-8
lines changed
  • src/tools/build-manifest/src

1 file changed

+3
-8
lines changed

src/tools/build-manifest/src/main.rs

+3-8
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,13 @@ impl Builder {
250250
let mut components = Vec::new();
251251
let mut extensions = Vec::new();
252252

253-
// rustc/rust-std/cargo are all required, and so is rust-mingw if it's
254-
// available for the target.
253+
// rustc/rust-std/cargo/docs are all required, and so is rust-mingw
254+
// if it's available for the target.
255255
components.extend(vec![
256256
Component { pkg: "rustc".to_string(), target: host.to_string() },
257257
Component { pkg: "rust-std".to_string(), target: host.to_string() },
258258
Component { pkg: "cargo".to_string(), target: host.to_string() },
259+
Component { pkg: "rust-docs".to_string(), target: host.to_string() },
259260
]);
260261
if host.contains("pc-windows-gnu") {
261262
components.push(Component {
@@ -264,12 +265,6 @@ impl Builder {
264265
});
265266
}
266267

267-
// Docs, other standard libraries, and the source package are all
268-
// optional.
269-
extensions.push(Component {
270-
pkg: "rust-docs".to_string(),
271-
target: host.to_string(),
272-
});
273268
for target in TARGETS {
274269
if target != host {
275270
extensions.push(Component {

0 commit comments

Comments
 (0)