Add Ident case (#24390) (#24402)

(cherry picked from commit a0e3e3c193)

Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
mergify[bot]
2022-04-15 22:48:36 -06:00
committed by GitHub
parent 25274e8a33
commit b98e133f2d

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",