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

Switch to #[proc_macro] #62

Closed
EmbersArc opened this issue Sep 14, 2021 · 0 comments
Closed

Switch to #[proc_macro] #62

EmbersArc opened this issue Sep 14, 2021 · 0 comments

Comments

@EmbersArc
Copy link

From the proc-macro-hack readme:

Note: As of Rust 1.45 this crate is superseded by native support for #[proc_macro] in expression position. Only consider using this crate if you care about supporting compilers between 1.31 and 1.45.

I don't know if this is a drop-in replacement but it may be worth considering to native proc macros. proc-macro-hack leads to some unexpected things like false positives in rust-analyzer: rust-lang/rust-analyzer#6835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants