@@ -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