-
Notifications
You must be signed in to change notification settings - Fork 13.3k
No impl of Ord for RefCell<T> or Cell<T> when T: Ord #33305
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
Comments
The implementation for RefCell is not super workable since it would have to either panic or return nonsensical results if the cell is borrowed mutably at the time. An impl for Cell seems like it should be fine though. |
What's the problem with panicking? That's what |
@sfackler there is an impl of |
add implementation of Ord for Cell<T> and RefCell<T> where T: Ord Raised this in issue #33305.
Fixed by #33306. |
Title says it all. I am working on it right now. Do I need to create an RFC or can I just send a PR?
The text was updated successfully, but these errors were encountered: