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

Remove proc-macro-error dependency #1180

Merged
merged 1 commit into from
Aug 5, 2023

Conversation

jplatte
Copy link
Contributor

@jplatte jplatte commented Aug 1, 2023

Closes #1173.

I chose to minimize the diff by introducing a minimal abort! macro that early-returns like anyhow::bail! or similar macros, which reduces the amount of code that has to change a lot.

Further refactorings are possible (in particular, I personally prefer to collect all attribute errors and emitting them individually where possible, instead of short-circuiting on the first error), but I didn't do any of that in this PR for the same reason. Let me know if you're interested in anything like that.

@@ -121,6 +121,12 @@
unused_qualifications
)]

macro_rules! abort {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This got me confused for a minute. I was wondering where abort was coming from since you were deleting proc-macro-error.

@tarcieri tarcieri merged commit c512452 into RustCrypto:master Aug 5, 2023
170 checks passed
@jplatte jplatte deleted the jplatte/proc-macro-error branch August 5, 2023 13:41
@baloo baloo mentioned this pull request Aug 7, 2023
baloo added a commit that referenced this pull request Aug 7, 2023
Changed
- fix doc typo and use a valid tag number ([#1184])
- remove proc-macro-error dependency ([#1180])

[#1180]: #1180
[#1184]: #1184
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.

der_derive pulls in both syn 1.x and 2.x
3 participants