diff options
| author | Kazantcev Andrey <45011689+heckad@users.noreply.github.com> | 2020-10-08 13:58:51 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-08 13:58:51 +0300 |
| commit | dd60ab3e2d5f2c650423f7d85b7cf5b4d8ce0a5c (patch) | |
| tree | 307aabd10a102e6c9d9bbab568d5037c07401107 /compiler/rustc_driver/src | |
| parent | 141544a903d4eb049d0611cbe6c7d248d3f5d425 (diff) | |
| download | rust-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.rs | 2 |
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(()), |
