From 156717d3e5d3010cc78cdd1b401f70c264016b41 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Sat, 10 Sep 2022 23:01:36 +0000 Subject: [PATCH] Add diagnostic arg 'current_crate' --- compiler/rustc_metadata/src/errors.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_metadata/src/errors.rs b/compiler/rustc_metadata/src/errors.rs index 8378d2b791d..1406ee914af 100644 --- a/compiler/rustc_metadata/src/errors.rs +++ b/compiler/rustc_metadata/src/errors.rs @@ -572,6 +572,7 @@ impl SessionDiagnostic<'_> for CannotFindCrate { ) -> rustc_errors::DiagnosticBuilder<'_, ErrorGuaranteed> { let mut diag = handler.struct_err(rustc_errors::fluent::metadata::cannot_find_crate); diag.set_arg("crate_name", self.crate_name); + diag.set_arg("current_crate", self.current_crate); diag.set_arg("add_info", self.add_info); diag.set_arg("locator_triple", self.locator_triple.triple()); diag.code(error_code!(E0463));