Function rustc_ast_lowering::format::flatten_format_args
source ยท fn flatten_format_args(fmt: Cow<'_, FormatArgs>) -> Cow<'_, FormatArgs>
Expand description
Flattens nested format_args!()
into one.
Turns
format_args!("a {} {} {}.", 1, format_args!("b{}!", 2), 3)
into
format_args!("a {} b{}! {}.", 1, 2, 3)
.