We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is this supposed to work with rust-1.30, with rust-lang/rust#53236 merged ??
extern crate proc_macro2; use proc_macro2::{Ident, Span}; fn main() { let _tname = Ident::new("r#enum", Span::call_site()); }
gives:
thread 'main' panicked at '"r#enum" is not a valid Ident' […] 7: proc_macro2::stable::validate_term at […]/proc-macro2-0.4.20/src/stable.rs:580 […]
The text was updated successfully, but these errors were encountered:
I don't think so. You are going to need Ident::new_raw once stabilized. For now I would recommend using syn:
Ident::new_raw
let _tname: proc_macro2::Ident = syn::parse_str("r#enum").unwrap();
Sorry, something went wrong.
No branches or pull requests
Is this supposed to work with rust-1.30, with rust-lang/rust#53236 merged ??
gives:
The text was updated successfully, but these errors were encountered: