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

Add proc_macro crate for the 1.56 ABI #9806

Merged
merged 1 commit into from
Aug 7, 2021

Conversation

alexjg
Copy link
Contributor

@alexjg alexjg commented Aug 7, 2021

I've copied the latest proc macro source from Rust nightly and modified it to compile on stable. This fixes #9795 . Almost everything here is uninteresting copy and paste, the interesting stuff is in crates/proc_macro_srv/src/abis/mod.rs. I've left the 1.55 ABI implementation in for now. We did discuss only supporting one nightly ABI so we may want to remove 1.55. That will break code which is pinned to older nightly releases but that seems acceptable to me, what do people think?

@lnicola
Copy link
Member

lnicola commented Aug 7, 2021

You might need to run cargo fmt or something.

We did discuss only supporting one nightly ABI so we may want to remove 1.55.

I think we can keep three versions (stable, beta, nightly). Technically, 1.55 is beta, right?

@alexjg
Copy link
Contributor Author

alexjg commented Aug 7, 2021

Yup, forgot to run the tidy tests. Have force pushed.

Three versions sounds good, I'll leave 1.55 in then, this should be good to go.

@lnicola
Copy link
Member

lnicola commented Aug 7, 2021

Thanks for taking care of this!

bors r+

@lnicola
Copy link
Member

lnicola commented Aug 7, 2021

changelog feat add support for the 1.56 nightly proc macro ABI

@bors
Copy link
Contributor

bors bot commented Aug 7, 2021

@bors bors bot merged commit c5bde08 into rust-lang:master Aug 7, 2021
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.

proc-macro panicked: called Rust::unwrap() on an Err value: ParseFloatError
2 participants