Module format

Source

Structs§

MacroInput πŸ”’

Enums§

PositionUsedAs πŸ”’

Functions§

expand_format_args πŸ”’
expand_format_args_impl πŸ”’
expand_format_args_nl πŸ”’
invalid_placeholder_type_error πŸ”’
make_format_args πŸ”’
parse_args πŸ”’
Parses the arguments from the given list of tokens, returning the diagnostic if there’s a parse error so we can continue parsing other format! expressions.
report_invalid_references πŸ”’
Handle invalid references to positional arguments. Output different errors for the case where all arguments are positional and for when there are named arguments or numbered positional arguments in the format string.
report_missing_placeholders πŸ”’
report_redundant_format_arguments πŸ”’
This function detects and reports unused format!() arguments that are redundant due to implicit captures (e.g. format!("{x}", x)).