Add Ident case (#24390) (#24401)

(cherry picked from commit a0e3e3c193a7a7b0478cf7648b279e05dd839df8)

Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
mergify[bot] 2022-04-15 22:48:26 -06:00 committed by GitHub
parent aada9786eb
commit de065d865a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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