rustc_builtin_macros::util

Function get_exprs_from_tts

Source
pub(crate) fn get_exprs_from_tts(
    cx: &mut ExtCtxt<'_>,
    tts: TokenStream,
) -> ExpandResult<Result<Vec<P<Expr>>, ErrorGuaranteed>, ()>
Expand description

Extracts comma-separated expressions from tts. On error, emit it, and return Err.