We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 141544a commit dd60ab3Copy full SHA for dd60ab3
compiler/rustc_driver/src/lib.rs
@@ -155,7 +155,7 @@ pub fn run_compiler(
155
),
156
}
157
158
- let diagnostic_output = emitter.map(DiagnosticOutput::Raw).unwrap_or(DiagnosticOutput::Default);
+ let diagnostic_output = emitter.map_or(DiagnosticOutput::Default, DiagnosticOutput::Raw);
159
let matches = match handle_options(&args) {
160
Some(matches) => matches,
161
None => return Ok(()),
0 commit comments