File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed
compiler/rustc_errors/src Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -553,37 +553,21 @@ impl Handler {
553553 sm : Option < Lrc < SourceMap > > ,
554554 fallback_bundle : LazyFallbackBundle ,
555555 ) -> 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 (
557559 ColorConfig :: Auto ,
558560 sm,
559561 None ,
560562 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,
579563 false ,
580564 false ,
581565 None ,
582566 flags. macro_backtrace ,
583567 flags. track_diagnostics ,
584568 TerminalUrl :: No ,
585569 ) ) ;
586- Self :: with_emitter_and_flags ( emitter, flags, ice_file )
570+ Self :: with_emitter_and_flags ( emitter, flags, None )
587571 }
588572
589573 pub fn with_emitter (
You can’t perform that action at this time.
0 commit comments