format_ident! does not support spans with capturing format strings
Open
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
`format_ident!` seems to support the new capturing format strings introduced in Rust 1.58 on first glance. However, `format_ident!("{name}")` with a captured variable `name: Ident` produces an `Ident` with `Span::call_site()`, whereas `format_ident!("{}", name)` produces an `Ident` that keeps the span of `name`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.