diff options
| author | bors <bors@rust-lang.org> | 2024-02-22 08:01:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-22 08:01:37 +0000 |
| commit | f70f19fef41cfdda75c92f163434c29ad046cf09 (patch) | |
| tree | f781338fb3f2e285e13f5cdb5478e8cacaebd093 /compiler/rustc_errors/src/json.rs | |
| parent | 026b3b8e955e0571db39aa96fc9d7aba25cc4d66 (diff) | |
| parent | 6efffd723bc87f3a577f4f52fcffb6335406e9cb (diff) | |
| download | rust-f70f19fef41cfdda75c92f163434c29ad046cf09.tar.gz rust-f70f19fef41cfdda75c92f163434c29ad046cf09.zip | |
Auto merge of #121129 - nnethercote:codegen-Diags, r=estebank
Improve codegen diagnostic handling Clarify the workings of the temporary `Diagnostic` type used to send diagnostics from codegen threads to the main thread. r? `@estebank`
Diffstat (limited to 'compiler/rustc_errors/src/json.rs')
| -rw-r--r-- | compiler/rustc_errors/src/json.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/json.rs b/compiler/rustc_errors/src/json.rs index 470e3d52452..e57b414c52d 100644 --- a/compiler/rustc_errors/src/json.rs +++ b/compiler/rustc_errors/src/json.rs @@ -341,7 +341,7 @@ struct UnusedExterns<'a, 'b, 'c> { impl Diagnostic { fn from_errors_diagnostic(diag: crate::Diagnostic, je: &JsonEmitter) -> Diagnostic { - let args = to_fluent_args(diag.args()); + let args = to_fluent_args(diag.args.iter()); let sugg = diag.suggestions.iter().flatten().map(|sugg| { let translated_message = je.translate_message(&sugg.msg, &args).map_err(Report::new).unwrap(); |
