Skip to content

Commit 58f4505

Browse files
committed
Add a useful comment.
It took me a while to work this out.
1 parent 9ff4487 commit 58f4505

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_errors/src/json.rs

+1
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ struct UnusedExterns<'a> {
279279
}
280280

281281
impl Diagnostic {
282+
/// Converts from `rustc_errors::DiagInner` to `Diagnostic`.
282283
fn from_errors_diagnostic(diag: crate::DiagInner, je: &JsonEmitter) -> Diagnostic {
283284
let args = to_fluent_args(diag.args.iter());
284285
let sugg = diag.suggestions.iter().flatten().map(|sugg| {

0 commit comments

Comments
 (0)