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

proc_macro: fix current nightly/future stable ABI incompatibility #4676

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

robojumper
Copy link
Contributor

@robojumper robojumper commented May 31, 2020

With rust-lang/rust#72233, the proc_macro ABI has changed, leading to the test_derive_serialize_proc_macro test believing that serde wants to pass the struct name as a byte string literal instead of a string literal.

Fixes #4866.

@matklad
Copy link
Member

matklad commented Jun 5, 2020

bors r+

I think we need it now?

bors bot added a commit that referenced this pull request Jun 5, 2020
4676: proc_macro: fix current nightly/future stable ABI incompatibility r=matklad a=robojumper

With rust-lang/rust#72233, the proc_macro ABI has changed, leading to the `test_derive_serialize_proc_macro` test believing (on nightly) that `serde` wants to pass the struct name as a byte string literal instead of a string literal.

This fixes the test on nightly, but obviously breaks it on stable. As a result, this should be merged when Rust stable `1.45` releases on 2020-07-16. The PR is a draft as to not accidentally merge this too early. People working on nightly can simply apply the commit if they want a fully passing test suite.

Co-authored-by: robojumper <robojumper@gmail.com>
@matklad
Copy link
Member

matklad commented Jun 5, 2020

bors r-

Ah, no, I need it now, because I run beta... Gotta stick to stable I guess .

@bors
Copy link
Contributor

bors bot commented Jun 5, 2020

Canceled.

@lnicola
Copy link
Member

lnicola commented Jul 16, 2020

1.45 is out, we gotta merge this.

@robojumper robojumper marked this pull request as ready for review July 16, 2020 14:25
@robojumper robojumper closed this Jul 16, 2020
@robojumper robojumper reopened this Jul 16, 2020
@lnicola
Copy link
Member

lnicola commented Jul 16, 2020

image

Uh..

@matklad
Copy link
Member

matklad commented Jul 16, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 16, 2020

@bors bors bot merged commit 9210fcc into rust-lang:master Jul 16, 2020
@robojumper robojumper deleted the proc_macro-abi-compat branch July 16, 2020 16:43
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.

Test 'tests::test_derive_serialize_proc_macro' panics with STATUS_ILLEGAL_INSTRUCTION
3 participants