File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,16 @@ impl Step for Rls {
241
241
let host = self . host ;
242
242
let compiler = builder. compiler ( stage, host) ;
243
243
244
- builder. ensure ( tool:: Rls { compiler, target : self . host , extra_features : Vec :: new ( ) } ) ;
244
+ let build_result = builder. ensure ( tool:: Rls {
245
+ compiler,
246
+ target : self . host ,
247
+ extra_features : Vec :: new ( ) ,
248
+ } ) ;
249
+ if build_result. is_none ( ) {
250
+ eprintln ! ( "failed to test rls: could not build" ) ;
251
+ return ;
252
+ }
253
+
245
254
let mut cargo = tool:: prepare_tool_cargo ( builder,
246
255
compiler,
247
256
host,
@@ -286,7 +295,16 @@ impl Step for Rustfmt {
286
295
let host = self . host ;
287
296
let compiler = builder. compiler ( stage, host) ;
288
297
289
- builder. ensure ( tool:: Rustfmt { compiler, target : self . host , extra_features : Vec :: new ( ) } ) ;
298
+ let build_result = builder. ensure ( tool:: Rustfmt {
299
+ compiler,
300
+ target : self . host ,
301
+ extra_features : Vec :: new ( ) ,
302
+ } ) ;
303
+ if build_result. is_none ( ) {
304
+ eprintln ! ( "failed to test rustfmt: could not build" ) ;
305
+ return ;
306
+ }
307
+
290
308
let mut cargo = tool:: prepare_tool_cargo ( builder,
291
309
compiler,
292
310
host,
You can’t perform that action at this time.
0 commit comments