Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Add Ident case (#24390)
Browse files Browse the repository at this point in the history
(cherry picked from commit a0e3e3c)
  • Loading branch information
Tyera Eulberg authored and mergify-bot committed Apr 15, 2022
1 parent 3bf00e4 commit dee72f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ impl Parse for RespanInput {
respan_using: ident.span(),
})
}
TokenTree::Ident(i) => Ok(RespanInput {
to_respan,
respan_using: i.span(),
}),
val => Err(syn::Error::new_spanned(
val,
"expected None-delimited group",
Expand Down

0 comments on commit dee72f3

Please sign in to comment.