File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/rustc_driver_impl/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -373,15 +373,16 @@ fn run_compiler(
373373
374374 let handler = EarlyErrorHandler :: new( sess. opts. error_format) ;
375375
376+ let should_stop = print_crate_info( & handler, codegen_backend, sess, has_input) ;
377+
376378 if !has_input {
377- let should_stop = print_crate_info( & handler, codegen_backend, sess, false ) ;
378379 if should_stop == Compilation :: Continue {
379380 handler. early_error( "no input filename given" )
380381 }
381382 return sess. compile_status( ) ;
382383 }
383384
384- let should_stop = print_crate_info ( & handler , codegen_backend , sess , true )
385+ let should_stop = should_stop
385386 . and_then( || list_metadata( & handler, sess, & * codegen_backend. metadata_loader( ) ) )
386387 . and_then( || try_process_rlink( sess, compiler) ) ;
387388
You can’t perform that action at this time.
0 commit comments