Skip to content

Commit

Permalink
Remove unused DiagnosticOutput::Emitter variant.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Apr 25, 2019
1 parent 3991285 commit 68f5101
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/librustc/session/mod.rs
Expand Up @@ -1078,8 +1078,7 @@ fn default_emitter(

pub enum DiagnosticOutput {
Default,
Raw(Box<dyn Write + Send>),
Emitter(Box<dyn Emitter + Send + sync::Send>)
Raw(Box<dyn Write + Send>)
}

pub fn build_session_with_source_map(
Expand Down Expand Up @@ -1115,7 +1114,6 @@ pub fn build_session_with_source_map(
DiagnosticOutput::Raw(write) => {
default_emitter(&sopts, registry, &source_map, Some(write))
}
DiagnosticOutput::Emitter(emitter) => emitter,
};

let diagnostic_handler = errors::Handler::with_emitter_and_flags(
Expand Down

0 comments on commit 68f5101

Please sign in to comment.