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