@@ -293,7 +293,7 @@ fn run_compiler(
293
293
>,
294
294
using_internal_features: Arc <std:: sync:: atomic:: AtomicBool >,
295
295
) -> interface:: Result <( ) > {
296
- let mut early_error_handler = EarlyErrorHandler :: new( ErrorOutputType :: default ( ) ) ;
296
+ let mut default_handler = EarlyErrorHandler :: new( ErrorOutputType :: default ( ) ) ;
297
297
298
298
// Throw away the first argument, the name of the binary.
299
299
// In case of at_args being empty, as might be the case by
@@ -305,14 +305,14 @@ fn run_compiler(
305
305
// the compiler with @empty_file as argv[0] and no more arguments.
306
306
let at_args = at_args. get( 1 ..) . unwrap_or_default( ) ;
307
307
308
- let args = args:: arg_expand_all( & early_error_handler , at_args) ;
308
+ let args = args:: arg_expand_all( & default_handler , at_args) ;
309
309
310
- let Some ( matches) = handle_options( & early_error_handler , & args) else { return Ok ( ( ) ) } ;
310
+ let Some ( matches) = handle_options( & default_handler , & args) else { return Ok ( ( ) ) } ;
311
311
312
- let sopts = config:: build_session_options( & mut early_error_handler , & matches) ;
312
+ let sopts = config:: build_session_options( & mut default_handler , & matches) ;
313
313
314
314
if let Some ( ref code) = matches. opt_str( "explain" ) {
315
- handle_explain( & early_error_handler , diagnostics_registry( ) , code, sopts. color) ;
315
+ handle_explain( & default_handler , diagnostics_registry( ) , code, sopts. color) ;
316
316
return Ok ( ( ) ) ;
317
317
}
318
318
@@ -338,7 +338,7 @@ fn run_compiler(
338
338
expanded_args: args,
339
339
} ;
340
340
341
- match make_input( & early_error_handler , & matches. free) {
341
+ match make_input( & default_handler , & matches. free) {
342
342
Err ( reported) => return Err ( reported) ,
343
343
Ok ( Some ( input) ) => {
344
344
config. input = input;
@@ -349,7 +349,7 @@ fn run_compiler(
349
349
0 => {
350
350
callbacks. config( & mut config) ;
351
351
352
- early_error_handler . abort_if_errors( ) ;
352
+ default_handler . abort_if_errors( ) ;
353
353
354
354
interface:: run_compiler( config, |compiler| {
355
355
let sopts = & compiler. session( ) . opts;
@@ -374,14 +374,14 @@ fn run_compiler(
374
374
return Ok ( ( ) ) ;
375
375
}
376
376
1 => panic!( "make_input should have provided valid inputs" ) ,
377
- _ => early_error_handler . early_error( format!(
377
+ _ => default_handler . early_error( format!(
378
378
"multiple input filenames provided (first two filenames are `{}` and `{}`)" ,
379
379
matches. free[ 0 ] , matches. free[ 1 ] ,
380
380
) ) ,
381
381
} ,
382
382
} ;
383
383
384
- early_error_handler . abort_if_errors( ) ;
384
+ default_handler . abort_if_errors( ) ;
385
385
386
386
interface:: run_compiler( config, |compiler| {
387
387
let sess = compiler. session( ) ;
0 commit comments