@@ -139,11 +139,15 @@ macro_rules! install {
139
139
140
140
install ! ( ( self , builder, _config) ,
141
141
Docs , "src/doc" , _config. docs, only_hosts: false , {
142
+ // `expect` should be safe, only None when config.docs is false,
143
+ // which is guarded in `should_run`
142
144
let tarball = builder. ensure( dist:: Docs { host: self . target } ) . expect( "missing docs" ) ;
143
145
install_sh( builder, "docs" , self . compiler. stage, Some ( self . target) , & tarball) ;
144
146
} ;
145
147
Std , "library/std" , true , only_hosts: false , {
146
148
for target in & builder. targets {
149
+ // `expect` should be safe, only None when host != build, but this
150
+ // only runs when host == build
147
151
let tarball = builder. ensure( dist:: Std {
148
152
compiler: self . compiler,
149
153
target: * target
@@ -217,6 +221,8 @@ install!((self, builder, _config),
217
221
}
218
222
} ;
219
223
Analysis , "analysis" , Self :: should_build( _config) , only_hosts: false , {
224
+ // `expect` should be safe, only None with host != build, but this
225
+ // only uses the `build` compiler
220
226
let tarball = builder. ensure( dist:: Analysis {
221
227
// Find the actual compiler (handling the full bootstrap option) which
222
228
// produced the save-analysis data because that data isn't copied
0 commit comments