File tree 1 file changed +8
-7
lines changed
compiler/rustc_driver_impl/src
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -372,20 +372,21 @@ fn run_compiler(
372
372
373
373
let handler = EarlyErrorHandler :: new( sess. opts. error_format) ;
374
374
375
+ let should_stop = print_crate_info(
376
+ & handler,
377
+ & * * compiler. codegen_backend( ) ,
378
+ compiler. session( ) ,
379
+ has_input,
380
+ ) ;
381
+
375
382
if !has_input {
376
- let should_stop = print_crate_info(
377
- & handler,
378
- & * * compiler. codegen_backend( ) ,
379
- compiler. session( ) ,
380
- false ,
381
- ) ;
382
383
if should_stop == Compilation :: Continue {
383
384
handler. early_error( "no input filename given" )
384
385
}
385
386
return sess. compile_status( ) ;
386
387
}
387
388
388
- let should_stop = print_crate_info ( & handler , & * * compiler . codegen_backend ( ) , sess , true )
389
+ let should_stop = should_stop
389
390
. and_then( || {
390
391
list_metadata( & handler, sess, & * compiler. codegen_backend( ) . metadata_loader( ) )
391
392
} )
You can’t perform that action at this time.
0 commit comments