mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
Address review comments + Fix rebase
This commit is contained in:
@@ -746,7 +746,8 @@ fn emit_diagnostic(&mut self, diagnostic: &Diagnostic) {
|
||||
!this.emitted_diagnostics.insert(diagnostic_hash)
|
||||
};
|
||||
|
||||
// Only emit the diagnostic if we haven't already emitted an equivalent one.
|
||||
// Only emit the diagnostic if we've been asked to deduplicate and
|
||||
// haven't already emitted an equivalent diagnostic.
|
||||
if !(self.flags.deduplicate_diagnostics && already_emitted(self)) {
|
||||
self.emitter.emit_diagnostic(diagnostic);
|
||||
if diagnostic.is_error() {
|
||||
|
||||
@@ -184,7 +184,7 @@ pub fn new_handler(
|
||||
debugging_opts.terminal_width,
|
||||
false,
|
||||
)
|
||||
.ui_testing(debugging_opts.ui_testing),
|
||||
.ui_testing(debugging_opts.ui_testing()),
|
||||
)
|
||||
}
|
||||
ErrorOutputType::Json { pretty, json_rendered } => {
|
||||
@@ -193,7 +193,7 @@ pub fn new_handler(
|
||||
});
|
||||
Box::new(
|
||||
JsonEmitter::stderr(None, source_map, pretty, json_rendered, false)
|
||||
.ui_testing(debugging_opts.ui_testing),
|
||||
.ui_testing(debugging_opts.ui_testing()),
|
||||
)
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user