Add diagnostic arg 'current_crate'
This commit is contained in:
parent
56b625be68
commit
156717d3e5
@ -572,6 +572,7 @@ fn into_diagnostic(
|
||||
) -> 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));
|
||||
|
Loading…
Reference in New Issue
Block a user