@@ -61,13 +61,13 @@ impl HumanReadableErrorType {
6161 self ,
6262 mut dst : Box < dyn WriteColor + Send > ,
6363 fallback_bundle : LazyFallbackBundle ,
64- ) -> EmitterWriter {
64+ ) -> HumanEmitter {
6565 let ( short, color_config) = self . unzip ( ) ;
6666 let color = color_config. suggests_using_colors ( ) ;
6767 if !dst. supports_color ( ) && color {
6868 dst = Box :: new ( Ansi :: new ( dst) ) ;
6969 }
70- EmitterWriter :: new ( dst, fallback_bundle) . short_message ( short)
70+ HumanEmitter :: new ( dst, fallback_bundle) . short_message ( short)
7171 }
7272}
7373
@@ -196,13 +196,15 @@ pub trait Emitter: Translate {
196196 fn emit_diagnostic ( & mut self , diag : & Diagnostic ) ;
197197
198198 /// Emit a notification that an artifact has been output.
199- /// This is currently only supported for the JSON format,
200- /// other formats can, and will, simply ignore it.
199+ /// Currently only supported for the JSON format.
201200 fn emit_artifact_notification ( & mut self , _path : & Path , _artifact_type : & str ) { }
202201
202+ /// Emit a report about future breakage.
203+ /// Currently only supported for the JSON format.
203204 fn emit_future_breakage_report ( & mut self , _diags : Vec < Diagnostic > ) { }
204205
205- /// Emit list of unused externs
206+ /// Emit list of unused externs.
207+ /// Currently only supported for the JSON format.
206208 fn emit_unused_externs (
207209 & mut self ,
208210 _lint_level : rustc_lint_defs:: Level ,
@@ -501,7 +503,7 @@ pub trait Emitter: Translate {
501503 }
502504}
503505
504- impl Translate for EmitterWriter {
506+ impl Translate for HumanEmitter {
505507 fn fluent_bundle ( & self ) -> Option < & Lrc < FluentBundle > > {
506508 self . fluent_bundle . as_ref ( )
507509 }
@@ -511,7 +513,7 @@ impl Translate for EmitterWriter {
511513 }
512514}
513515
514- impl Emitter for EmitterWriter {
516+ impl Emitter for HumanEmitter {
515517 fn source_map ( & self ) -> Option < & Lrc < SourceMap > > {
516518 self . sm . as_ref ( )
517519 }
@@ -622,7 +624,7 @@ impl ColorConfig {
622624
623625/// Handles the writing of `HumanReadableErrorType::Default` and `HumanReadableErrorType::Short`
624626#[ derive( Setters ) ]
625- pub struct EmitterWriter {
627+ pub struct HumanEmitter {
626628 #[ setters( skip) ]
627629 dst : IntoDynSyncSend < Destination > ,
628630 sm : Option < Lrc < SourceMap > > ,
@@ -647,14 +649,14 @@ pub struct FileWithAnnotatedLines {
647649 multiline_depth : usize ,
648650}
649651
650- impl EmitterWriter {
651- pub fn stderr ( color_config : ColorConfig , fallback_bundle : LazyFallbackBundle ) -> EmitterWriter {
652+ impl HumanEmitter {
653+ pub fn stderr ( color_config : ColorConfig , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
652654 let dst = from_stderr ( color_config) ;
653655 Self :: create ( dst, fallback_bundle)
654656 }
655657
656- fn create ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> EmitterWriter {
657- EmitterWriter {
658+ fn create ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
659+ HumanEmitter {
658660 dst : IntoDynSyncSend ( dst) ,
659661 sm : None ,
660662 fluent_bundle : None ,
@@ -673,7 +675,7 @@ impl EmitterWriter {
673675 pub fn new (
674676 dst : Box < dyn WriteColor + Send > ,
675677 fallback_bundle : LazyFallbackBundle ,
676- ) -> EmitterWriter {
678+ ) -> HumanEmitter {
677679 Self :: create ( dst, fallback_bundle)
678680 }
679681
0 commit comments