Skip to content

Commit 5bf8105

Browse files
committed
Address review comments + Fix rebase
1 parent 6bd6a20 commit 5bf8105

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/librustc_errors/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,8 @@ impl HandlerInner {
746746
!this.emitted_diagnostics.insert(diagnostic_hash)
747747
};
748748

749-
// Only emit the diagnostic if we haven't already emitted an equivalent one.
749+
// Only emit the diagnostic if we've been asked to deduplicate and
750+
// haven't already emitted an equivalent diagnostic.
750751
if !(self.flags.deduplicate_diagnostics && already_emitted(self)) {
751752
self.emitter.emit_diagnostic(diagnostic);
752753
if diagnostic.is_error() {

src/librustdoc/core.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ pub fn new_handler(
184184
debugging_opts.terminal_width,
185185
false,
186186
)
187-
.ui_testing(debugging_opts.ui_testing),
187+
.ui_testing(debugging_opts.ui_testing()),
188188
)
189189
}
190190
ErrorOutputType::Json { pretty, json_rendered } => {
@@ -193,7 +193,7 @@ pub fn new_handler(
193193
});
194194
Box::new(
195195
JsonEmitter::stderr(None, source_map, pretty, json_rendered, false)
196-
.ui_testing(debugging_opts.ui_testing),
196+
.ui_testing(debugging_opts.ui_testing()),
197197
)
198198
}
199199
};

0 commit comments

Comments
 (0)