summary refs log tree commit diff
path: root/compiler/rustc_session/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-05 10:37:44 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-01-05 10:37:44 +1100
commitc4d63c7f760d23c2f5c509fa08a0b0afd34fd6fb (patch)
treec5168e2614f398925e433f8c59a95fd252e6bbf9 /compiler/rustc_session/src
parentcb9abcae7936181331a2e5a7d0de8506c8f98690 (diff)
downloadrust-c4d63c7f760d23c2f5c509fa08a0b0afd34fd6fb.tar.gz
rust-c4d63c7f760d23c2f5c509fa08a0b0afd34fd6fb.zip
Rename `AnnotateSnippetEmitterWriter` as `AnnotateSnippetEmitter`.
For consistency with other `Emitter` impls.
Diffstat (limited to 'compiler/rustc_session/src')
-rw-r--r--compiler/rustc_session/src/session.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs
index b2e3bce09bd..e77932a13e3 100644
--- a/compiler/rustc_session/src/session.rs
+++ b/compiler/rustc_session/src/session.rs
@@ -17,7 +17,7 @@ use rustc_data_structures::profiling::{SelfProfiler, SelfProfilerRef};
 use rustc_data_structures::sync::{
     AtomicU64, DynSend, DynSync, Lock, Lrc, OneThread, Ordering::SeqCst,
 };
-use rustc_errors::annotate_snippet_emitter_writer::AnnotateSnippetEmitterWriter;
+use rustc_errors::annotate_snippet_emitter_writer::AnnotateSnippetEmitter;
 use rustc_errors::emitter::{DynEmitter, HumanEmitter, HumanReadableErrorType};
 use rustc_errors::json::JsonEmitter;
 use rustc_errors::registry::Registry;
@@ -1000,7 +1000,7 @@ fn default_emitter(
             let (short, color_config) = kind.unzip();
 
             if let HumanReadableErrorType::AnnotateSnippet(_) = kind {
-                let emitter = AnnotateSnippetEmitterWriter::new(
+                let emitter = AnnotateSnippetEmitter::new(
                     Some(source_map),
                     bundle,
                     fallback_bundle,