Add Ident case (#24390)

This commit is contained in:
Tyera Eulberg
2022-04-15 18:27:25 -04:00
committed by GitHub
parent 75108d8e56
commit a0e3e3c193

View File

@ -198,6 +198,10 @@ impl Parse for RespanInput {
respan_using: ident.span(), respan_using: ident.span(),
}) })
} }
TokenTree::Ident(i) => Ok(RespanInput {
to_respan,
respan_using: i.span(),
}),
val => Err(syn::Error::new_spanned( val => Err(syn::Error::new_spanned(
val, val,
"expected None-delimited group", "expected None-delimited group",