-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Start using serde_derive in a couple places in the compiler #56795
Conversation
This comment has been minimized.
This comment has been minimized.
@bors: r+ Once this is green on Travis feel free to p=1 since this is blocking other work |
📌 Commit 7bd36fb has been approved by |
@bors r=alexcrichton |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bors p=1 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I've changed the approach here to something that requires no build system changes. I made I also added a |
To understand why this is a breaking change, is FWIW I think it's worthwhile to get this working without a special attribute because we'll ideally want to pull in crates.io crates that have their own procedural macros, and we wouldn't necessarily want them to annotate imports. Also I'm not sure I quite understand why FWIW though I do agree that not requiring procedural macros when depending on a crate is the behavior we want! |
This comment has been minimized.
This comment has been minimized.
In the general case for The |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'll have to change the approach taken to enabled proc macros in rustc. Consider this blocked on #57626 for now |
8648d76
to
152ca75
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
… a host proc macro to execute them
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
☔ The latest upstream changes (presumably #57948) made this pull request unmergeable. Please resolve the merge conflicts. |
Create a derive macro for HashStable and allow proc macros in rustc A combination of #56864 and #56795. There were complications with using `serde_derive` as rustc doesn't know which crate to use for the host when there is a serde_derive in the sysroot and cargo passes another on the command line built from crates.io. r? @eddyb (for proc macro changes) @alexcrichton (for rustbuild changes) @michaelwoerister (for the macro itself)
Use derive macro for HashStable Blocked on #56795
This is #56447 with the build changes in #56462
r? @alexcrichton