Skip to content

Commit dd60ab3

Browse files
Commit suggestion
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
1 parent 141544a commit dd60ab3

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_driver/src

1 file changed

+1
-1
lines changed

compiler/rustc_driver/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ pub fn run_compiler(
155155
),
156156
}
157157
}
158-
let diagnostic_output = emitter.map(DiagnosticOutput::Raw).unwrap_or(DiagnosticOutput::Default);
158+
let diagnostic_output = emitter.map_or(DiagnosticOutput::Default, DiagnosticOutput::Raw);
159159
let matches = match handle_options(&args) {
160160
Some(matches) => matches,
161161
None => return Ok(()),

0 commit comments

Comments
 (0)