mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Document report_redundant_format_arguments()
This commit is contained in:
parent
9c921f843c
commit
e1c18f4d9d
@ -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…
Reference in New Issue
Block a user