check_trailing_tokens

Function check_trailing_tokens 

Source
fn check_trailing_tokens<'psess>(
    iter: &mut TokenStreamIter<'_>,
    psess: &'psess ParseSess,
    ident: Ident,
) -> PResult<'psess, ()>
Expand description

Checks if there are any remaining tokens (for example, ${ignore($valid, extra)}) and create a diag with the correct arg count if so.