ACP: [perf] proc-macro
Ident
should have method as_str
#573
Labels
proc-macro
Ident
should have method as_str
#573
Proposal
Problem statement
Motivating examples or use cases
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
Solution sketch
Expect usage
Alternatives
Links and related work
rust-lang/rust#139953
What happens now?
This issue contains an API change proposal (or ACP) and is part of the libs-api team feature lifecycle. Once this issue is filed, the libs-api team will review open proposals as capability becomes available. Current response times do not have a clear estimate, but may be up to several months.
Possible responses
The libs team may respond in various different ways. First, the team will consider the problem (this doesn't require any concrete solution or alternatives to have been proposed):
Second, if there's a concrete solution:
The text was updated successfully, but these errors were encountered: