-
Notifications
You must be signed in to change notification settings - Fork 49
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
Cannot derive Trace
for a Copy
object.
#87
Comments
Hmm, @mystor do you have an idea for how to have derive(Trace) work diffrntly here? Perhaps we need a |
But yeah, this should be easy, the reason it doesn't work here is because |
This change means that the `Finalize::finalize` method is not automatically called on drop. This might be a reasonable approach to take, and would avoid the need for a separate derive, but would be a breaking change. Fixes #87
It's actually possible to implement this without requiring a separate derive (see #88), like The cleanest backwards compatible approach would probably be a |
From my point of view, even if it's not backwards compatible, the proposed solution is a cleaner approach, and this crate is still not 1.0, so breaking changes are expected. |
It seems that if I try to derive both
Copy
andTrace
in a simple structure, I get this error:But from my understanding, a simple
Copy
structure such as:should be easy to implement, and the
Trace
implementation could be empty, right? Is there a proper way to do this? It's currently blocking doing type-safe string interning in Boa.The text was updated successfully, but these errors were encountered: