rustc_builtin_macros::format

Function parse_args

Source
fn parse_args<'a>(
    ecx: &ExtCtxt<'a>,
    sp: Span,
    tts: TokenStream,
) -> PResult<'a, MacroInput>
Expand description

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.

If parsing succeeds, the return value is:

Ok((fmtstr, parsed arguments))