]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_errors/src/json.rs
Rollup merge of #103383 - compiler-errors:tait-scope, r=oli-obk
[rust.git] / compiler / rustc_errors / src / json.rs
index 1680c6accd78c8fc018581f4d1f955e0eda3bcc8..4cc7be47fc2c69c79d2d53c7f24cae7271cbde3f 100644 (file)
@@ -13,7 +13,7 @@
 
 use crate::emitter::{Emitter, HumanReadableErrorType};
 use crate::registry::Registry;
-use crate::translation::Translate;
+use crate::translation::{to_fluent_args, Translate};
 use crate::DiagnosticId;
 use crate::{
     CodeSuggestion, FluentBundle, LazyFallbackBundle, MultiSpan, SpanLabel, SubDiagnostic,
@@ -312,7 +312,7 @@ struct UnusedExterns<'a, 'b, 'c> {
 
 impl Diagnostic {
     fn from_errors_diagnostic(diag: &crate::Diagnostic, je: &JsonEmitter) -> Diagnostic {
-        let args = je.to_fluent_args(diag.args());
+        let args = to_fluent_args(diag.args());
         let sugg = diag.suggestions.iter().flatten().map(|sugg| {
             let translated_message = je.translate_message(&sugg.msg, &args);
             Diagnostic {