Document report_redundant_format_arguments()
This commit is contained in:
parent
9c921f843c
commit
e1c18f4d9d
1 changed files with 2 additions and 0 deletions
|
@ -708,6 +708,8 @@ fn report_missing_placeholders(
|
|||
diag.emit();
|
||||
}
|
||||
|
||||
/// This function detects and reports unused format!() arguments that are
|
||||
/// redundant due to implicit captures (e.g. `format!("{x}", x)`).
|
||||
fn report_redundant_format_arguments(
|
||||
ecx: &mut ExtCtxt<'_>,
|
||||
fmt_span: Span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue