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.
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 variablename: Identproduces anIdentwithSpan::call_site(), whereasformat_ident!("{}", name)produces anIdentthat keeps the span ofname.