[perf] proc-macro
Ident
should have method as_str
#139953
Labels
A-proc-macros
Area: Procedural macros
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
According to https://doc.rust-lang.org/proc_macro/struct.Ident.html
There are
pub fn new(string: &str, span: Span) -> Ident
ident.to_string()
Should provide below for performance
ident.as_str()
Very common actual usage
Expect usage
The text was updated successfully, but these errors were encountered: