Skip to content

Commit 453ffac

Browse files
committed
Add some comments to Emitter.
There are three functions only used for the JSON format.
1 parent c4d63c7 commit 453ffac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

compiler/rustc_errors/src/emitter.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,15 @@ pub trait Emitter: Translate {
196196
fn emit_diagnostic(&mut self, diag: &Diagnostic);
197197

198198
/// Emit a notification that an artifact has been output.
199-
/// This is currently only supported for the JSON format,
200-
/// other formats can, and will, simply ignore it.
199+
/// Currently only supported for the JSON format.
201200
fn emit_artifact_notification(&mut self, _path: &Path, _artifact_type: &str) {}
202201

202+
/// Emit a report about future breakage.
203+
/// Currently only supported for the JSON format.
203204
fn emit_future_breakage_report(&mut self, _diags: Vec<Diagnostic>) {}
204205

205-
/// Emit list of unused externs
206+
/// Emit list of unused externs.
207+
/// Currently only supported for the JSON format.
206208
fn emit_unused_externs(
207209
&mut self,
208210
_lint_level: rustc_lint_defs::Level,

0 commit comments

Comments
 (0)