@@ -20,7 +20,7 @@ use rustc_span::source_map::SourceMap;
20
20
use rustc_span:: SourceFile ;
21
21
22
22
/// Generates diagnostics using annotate-snippet
23
- pub struct AnnotateSnippetEmitterWriter {
23
+ pub struct AnnotateSnippetEmitter {
24
24
source_map : Option < Lrc < SourceMap > > ,
25
25
fluent_bundle : Option < Lrc < FluentBundle > > ,
26
26
fallback_bundle : LazyFallbackBundle ,
@@ -33,7 +33,7 @@ pub struct AnnotateSnippetEmitterWriter {
33
33
macro_backtrace : bool ,
34
34
}
35
35
36
- impl Translate for AnnotateSnippetEmitterWriter {
36
+ impl Translate for AnnotateSnippetEmitter {
37
37
fn fluent_bundle ( & self ) -> Option < & Lrc < FluentBundle > > {
38
38
self . fluent_bundle . as_ref ( )
39
39
}
@@ -43,7 +43,7 @@ impl Translate for AnnotateSnippetEmitterWriter {
43
43
}
44
44
}
45
45
46
- impl Emitter for AnnotateSnippetEmitterWriter {
46
+ impl Emitter for AnnotateSnippetEmitter {
47
47
/// The entry point for the diagnostics generation
48
48
fn emit_diagnostic ( & mut self , diag : & Diagnostic ) {
49
49
let fluent_args = to_fluent_args ( diag. args ( ) ) ;
@@ -99,7 +99,7 @@ fn annotation_type_for_level(level: Level) -> AnnotationType {
99
99
}
100
100
}
101
101
102
- impl AnnotateSnippetEmitterWriter {
102
+ impl AnnotateSnippetEmitter {
103
103
pub fn new (
104
104
source_map : Option < Lrc < SourceMap > > ,
105
105
fluent_bundle : Option < Lrc < FluentBundle > > ,
0 commit comments