-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convenience trait implementations on Ident
#93
Comments
The ones missing now are |
Regarding
|
Thank you for the explanation. I was just concerned about the effort needed to port from the old |
I'm very sorry if this is the wrong place, but I'm updating a crate to use the latest version of
I understand I need to use to_string() before as_ref() but what can I do to fix the implementation? Thanks! :) |
I suppose let _name = Ident::new(&name.to_string(), Span::call_site()); instead. Example on playground. |
Thank you so much! :) |
Should
Ident
fromproc-macro2
0.4 have following trait implementations likeIdent
fromsyn
0.13?From<&'a str>
;From<Cow<'a, str>>
;From<String>
;AsRef<str>
(however this one makesimpl PartialEq<T: AsRef<str> + ?Sized>
conflict withimpl PartialEq
).Also in case of the last one, is a quote from: rust-lang/rust#50473
relevant here (as in
Ident::as_str
being equivalent to<Ident as AsRef<str>>::as_ref
)?The text was updated successfully, but these errors were encountered: