Skip to content
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

Doesn't support raw ident #10

Closed
nhynes opened this issue Apr 3, 2019 · 3 comments
Closed

Doesn't support raw ident #10

nhynes opened this issue Apr 3, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@nhynes
Copy link
Contributor

nhynes commented Apr 3, 2019

The following works in quote but fails in proc_quote:

#[test]
fn test_raw_ident() {
    quote!( r#the );
}

with the error

thread 'main' panicked at '"r#the" is not a valid Ident'
stack backtrace:
   7: proc_macro2::fallback::validate_term
   8: proc_macro2::fallback::Ident::_new
   9: proc_macro2::fallback::Ident::new
  10: proc_macro2::imp::Ident::new
  11: proc_macro2::Ident::new
  12: proc_quote::__rt::append_ident
@nhynes
Copy link
Contributor Author

nhynes commented Apr 3, 2019

related: dtolnay/proc-macro2#140

@Goncalerta Goncalerta added the bug Something isn't working label Apr 3, 2019
@Goncalerta
Copy link
Owner

Thanks a lot for the report.
Just fixed it in 60bd96e.

@nhynes
Copy link
Contributor Author

nhynes commented Apr 3, 2019

Thanks a lot for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants