File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed 
compiler/rustc_interface/src Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -388,17 +388,16 @@ impl CodegenBackend for DummyCodegenBackend {
388388 )  { 
389389 // JUSTIFICATION: TyCtxt no longer available here 
390390 #[ allow( rustc:: bad_opt_access) ]  
391-  if  codegen_results
391+  if  let   Some ( & crate_type )  =  codegen_results
392392 . crate_info 
393393 . crate_types 
394394 . iter ( ) 
395-  . any ( | & crate_type| crate_type != CrateType :: Rlib ) 
395+  . find ( | & & crate_type| crate_type != CrateType :: Rlib ) 
396396 { 
397397 #[ allow( rustc:: untranslatable_diagnostic) ]  
398398 #[ allow( rustc:: diagnostic_outside_of_impl) ]  
399399 sess. dcx ( ) . fatal ( format ! ( 
400-  "crate type {} not supported by the dummy codegen backend" , 
401-  codegen_results. crate_info. crate_types[ 0 ] , 
400+  "crate type {crate_type} not supported by the dummy codegen backend" 
402401 ) ) ; 
403402 } 
404403
                         You can’t perform that action at this time. 
           
                  
0 commit comments