We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ff4487 commit 58f4505Copy full SHA for 58f4505
compiler/rustc_errors/src/json.rs
@@ -279,6 +279,7 @@ struct UnusedExterns<'a> {
279
}
280
281
impl Diagnostic {
282
+ /// Converts from `rustc_errors::DiagInner` to `Diagnostic`.
283
fn from_errors_diagnostic(diag: crate::DiagInner, je: &JsonEmitter) -> Diagnostic {
284
let args = to_fluent_args(diag.args.iter());
285
let sugg = diag.suggestions.iter().flatten().map(|sugg| {
0 commit comments