rustc_expand::mbe::macro_rules

Function check_lhs_no_empty_seq

Source
fn check_lhs_no_empty_seq(
    sess: &Session,
    tts: &[TokenTree],
) -> Result<(), ErrorGuaranteed>
Expand description

Checks that the lhs contains no repetition which could match an empty token tree, because then the matcher would hang indefinitely.