Add diagnostic arg 'current_crate'

This commit is contained in:
Jan Niehusmann 2022-09-10 23:01:36 +00:00
parent 56b625be68
commit 156717d3e5

View File

@ -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));