-
Notifications
You must be signed in to change notification settings - Fork 50
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 a marker trait for non GC types #109
Comments
Currently we just achieve this by a blank Trace impl. A problem is that coherence kinda rears its head if you add a Trace blanket impl based on GcDeadEnd. |
Sorry, could you elaborate what you mean by "coherence kinda rears its head"? |
Additional note: There would be impl Trace for Rc where T: GcDeadEnd |
You'd need a blanket
You won't be able to have both this and an impl |
Right thanks. I realized: But with specialization it works in my fork :) |
Nevermind, implemented my own Gc using safe non-experimental Rust only over at https://github.com/ZainlessBrombie/rs-safe-gc 🎉 c: |
Ah right I forgot: I'm running an MIT license and used some small snippets of your code (macros, thanks!), is that compatible with your license? I think not... off the top of your head, do you know if that's much of a problem here? |
yeah that's fine |
Even without specialization, a |
Proc macros don't have access to trait information, though I guess we could generate assertions if people are still annotating them. |
It would be nice to have the following:
3) impl Trace for GcDeadEndCheers! :)
The text was updated successfully, but these errors were encountered: