-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
A core trait for shallow/pointer equality #4012
Comments
I don't think this is a backwards-compatibility issue. (We should be able to add a I do agree that we probably want this. Re-nominating for milestone #5: Production Ready. |
FWIW is |
@glehel A safe pointer-equality operation can definitely be implemented in a moving GC. One can look for example at how the The place where I would anticipate issues with a moving GC would be unsafe casts from pointers to integers, as one would do e.g. for a pointer-based hashcode operation. So if one wanted a hashtable based on memory address that could use |
accepted for feature-complete milestone |
assigning P-low. |
The |
Rust moved away from providing these functions at all, so a trait doesn't make sense anymore. |
The text was updated successfully, but these errors were encountered: