@@ -250,12 +250,13 @@ impl Builder {
250
250
let mut components = Vec :: new ( ) ;
251
251
let mut extensions = Vec :: new ( ) ;
252
252
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.
255
255
components. extend ( vec ! [
256
256
Component { pkg: "rustc" . to_string( ) , target: host. to_string( ) } ,
257
257
Component { pkg: "rust-std" . to_string( ) , target: host. to_string( ) } ,
258
258
Component { pkg: "cargo" . to_string( ) , target: host. to_string( ) } ,
259
+ Component { pkg: "rust-docs" . to_string( ) , target: host. to_string( ) } ,
259
260
] ) ;
260
261
if host. contains ( "pc-windows-gnu" ) {
261
262
components. push ( Component {
@@ -264,12 +265,6 @@ impl Builder {
264
265
} ) ;
265
266
}
266
267
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
- } ) ;
273
268
for target in TARGETS {
274
269
if target != host {
275
270
extensions. push ( Component {
0 commit comments