about summary refs log tree commit diff
path: root/compiler/rustc_driver/src
diff options
context:
space:
mode:
authorKazantcev Andrey <45011689+heckad@users.noreply.github.com>2020-10-08 13:58:51 +0300
committerGitHub <noreply@github.com>2020-10-08 13:58:51 +0300
commitdd60ab3e2d5f2c650423f7d85b7cf5b4d8ce0a5c (patch)
tree307aabd10a102e6c9d9bbab568d5037c07401107 /compiler/rustc_driver/src
parent141544a903d4eb049d0611cbe6c7d248d3f5d425 (diff)
downloadrust-dd60ab3e2d5f2c650423f7d85b7cf5b4d8ce0a5c.tar.gz
rust-dd60ab3e2d5f2c650423f7d85b7cf5b4d8ce0a5c.zip
Commit suggestion
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Diffstat (limited to 'compiler/rustc_driver/src')
-rw-r--r--compiler/rustc_driver/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs
index e89fcc920a0..066a61a7a7b 100644
--- a/compiler/rustc_driver/src/lib.rs
+++ b/compiler/rustc_driver/src/lib.rs
@@ -155,7 +155,7 @@ pub fn run_compiler(
             ),
         }
     }
-    let diagnostic_output = emitter.map(DiagnosticOutput::Raw).unwrap_or(DiagnosticOutput::Default);
+    let diagnostic_output = emitter.map_or(DiagnosticOutput::Default, DiagnosticOutput::Raw);
     let matches = match handle_options(&args) {
         Some(matches) => matches,
         None => return Ok(()),