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

Stop using proc-macro-hack #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

cuviper
Copy link

@cuviper cuviper commented Sep 23, 2020

Rust 1.45 enabled native support for #[proc_macro] in expression position, which supersedes proc-macro-hack as noted itself. However, since the decl macros in genawaiter-macro are calling proc macros in genawaiter-proc-macro, the token fix in rust-lang/rust#73293 is also needed for captured value hygiene, which was first in nightly-2020-06-25 and released in 1.46.

@cuviper
Copy link
Author

cuviper commented Sep 23, 2020

I suppose this may be an pseudo-internal API-break between genawaiter and genawaiter-proc-macro.

@vorot93
Copy link

vorot93 commented Jul 20, 2021

@whatisaphone any chance this could be merged?

@DevinR528
Copy link
Collaborator

@whatisaphone I'm happy to help any way I can... The change looks good to me at a quick glance.

@janpaul123
Copy link

Btw this is also causing trouble for people using rust-analyzer; see rust-lang/rust-analyzer#6835 (comment) — so would be great to merge this :)

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

Successfully merging this pull request may close these issues.

4 participants