File tree 1 file changed +4
-20
lines changed
compiler/rustc_errors/src
1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -553,37 +553,21 @@ impl Handler {
553
553
sm : Option < Lrc < SourceMap > > ,
554
554
fallback_bundle : LazyFallbackBundle ,
555
555
) -> Self {
556
- Self :: with_tty_emitter_and_flags (
556
+ let flags =
557
+ HandlerFlags { can_emit_warnings, treat_err_as_bug : None , ..Default :: default ( ) } ;
558
+ let emitter = Box :: new ( EmitterWriter :: stderr (
557
559
ColorConfig :: Auto ,
558
560
sm,
559
561
None ,
560
562
fallback_bundle,
561
- HandlerFlags { can_emit_warnings, treat_err_as_bug : None , ..Default :: default ( ) } ,
562
- None ,
563
- )
564
- }
565
-
566
- pub fn with_tty_emitter_and_flags (
567
- color_config : ColorConfig ,
568
- sm : Option < Lrc < SourceMap > > ,
569
- fluent_bundle : Option < Lrc < FluentBundle > > ,
570
- fallback_bundle : LazyFallbackBundle ,
571
- flags : HandlerFlags ,
572
- ice_file : Option < PathBuf > ,
573
- ) -> Self {
574
- let emitter = Box :: new ( EmitterWriter :: stderr (
575
- color_config,
576
- sm,
577
- fluent_bundle,
578
- fallback_bundle,
579
563
false ,
580
564
false ,
581
565
None ,
582
566
flags. macro_backtrace ,
583
567
flags. track_diagnostics ,
584
568
TerminalUrl :: No ,
585
569
) ) ;
586
- Self :: with_emitter_and_flags ( emitter, flags, ice_file )
570
+ Self :: with_emitter_and_flags ( emitter, flags, None )
587
571
}
588
572
589
573
pub fn with_emitter (
You can’t perform that action at this time.
0 commit comments