@@ -20,7 +20,7 @@ use rustc_span::source_map::SourceMap;
2020use rustc_span:: SourceFile ;
2121
2222/// Generates diagnostics using annotate-snippet
23- pub struct AnnotateSnippetEmitterWriter {
23+ pub struct AnnotateSnippetEmitter {
2424 source_map : Option < Lrc < SourceMap > > ,
2525 fluent_bundle : Option < Lrc < FluentBundle > > ,
2626 fallback_bundle : LazyFallbackBundle ,
@@ -33,7 +33,7 @@ pub struct AnnotateSnippetEmitterWriter {
3333 macro_backtrace : bool ,
3434}
3535
36- impl Translate for AnnotateSnippetEmitterWriter {
36+ impl Translate for AnnotateSnippetEmitter {
3737 fn fluent_bundle ( & self ) -> Option < & Lrc < FluentBundle > > {
3838 self . fluent_bundle . as_ref ( )
3939 }
@@ -43,7 +43,7 @@ impl Translate for AnnotateSnippetEmitterWriter {
4343 }
4444}
4545
46- impl Emitter for AnnotateSnippetEmitterWriter {
46+ impl Emitter for AnnotateSnippetEmitter {
4747 /// The entry point for the diagnostics generation
4848 fn emit_diagnostic ( & mut self , diag : & Diagnostic ) {
4949 let fluent_args = to_fluent_args ( diag. args ( ) ) ;
@@ -99,7 +99,7 @@ fn annotation_type_for_level(level: Level) -> AnnotationType {
9999 }
100100}
101101
102- impl AnnotateSnippetEmitterWriter {
102+ impl AnnotateSnippetEmitter {
103103 pub fn new (
104104 source_map : Option < Lrc < SourceMap > > ,
105105 fluent_bundle : Option < Lrc < FluentBundle > > ,
0 commit comments