Skip to content

Commit 68f5101

Browse files
committed
Remove unused DiagnosticOutput::Emitter variant.
1 parent 3991285 commit 68f5101

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc/session/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,8 +1078,7 @@ fn default_emitter(
10781078

10791079
pub enum DiagnosticOutput {
10801080
Default,
1081-
Raw(Box<dyn Write + Send>),
1082-
Emitter(Box<dyn Emitter + Send + sync::Send>)
1081+
Raw(Box<dyn Write + Send>)
10831082
}
10841083

10851084
pub fn build_session_with_source_map(
@@ -1115,7 +1114,6 @@ pub fn build_session_with_source_map(
11151114
DiagnosticOutput::Raw(write) => {
11161115
default_emitter(&sopts, registry, &source_map, Some(write))
11171116
}
1118-
DiagnosticOutput::Emitter(emitter) => emitter,
11191117
};
11201118

11211119
let diagnostic_handler = errors::Handler::with_emitter_and_flags(

0 commit comments

Comments
 (0)