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

Use procedural macros to implement manually_traced types #22

Merged
merged 7 commits into from
Jan 23, 2021

Conversation

Techcable
Copy link
Member

@Techcable Techcable commented Jan 21, 2021

Procedural macros are more flexible and will allow us to use a
single macro for all our manually traced code.
It should also help downstream crates start to utilize this.

I'm doing this cleanup first because It makes implementing #20 much easier

@Techcable Techcable added this to the 0.2.0 milestone Jan 21, 2021
@Techcable Techcable marked this pull request as ready for review January 22, 2021 04:43
@Techcable Techcable marked this pull request as draft January 22, 2021 04:45
@Techcable
Copy link
Member Author

Wait it's still buggy - binary_trees wont compile -_-

@Techcable Techcable force-pushed the refactor/better-macros branch from b4f9baf to 9c06bbd Compare January 22, 2021 23:54
Procedural macros are more flexible and will allow us to use a
single macro for all our manually traced code.
It should also help downstream crates start to utilize this.
This is incomplete, but pretty darn awesome
The core crate now depends on zerogc-derive and syn-full
This procedural derive is **much** cleaner (although it brings in all of syn as a dependency)
This is the proc-macro equivelant of '$crate'
Before the macors weren't recursing properly, so we only
implemented it for 9-argument tuples ^_^
Add a test to verify that varius `core` types actually implement
`Trace` properly.

Unfortunately, the tests don't compile :(
Again, this is a problem with macro recursion ^_^
@Techcable Techcable force-pushed the refactor/better-macros branch from 9c06bbd to 2785d75 Compare January 23, 2021 06:06
@Techcable Techcable marked this pull request as ready for review January 23, 2021 06:06
@Techcable Techcable merged commit b337b2f into master Jan 23, 2021
@Techcable Techcable deleted the refactor/better-macros branch January 23, 2021 06:10
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.

1 participant