-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Allow ?Sized
types in Rc
’s impls of {Partial,}{Ord,Eq} and Borrow
#25460
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors: r+ rollup |
📌 Commit cb56237 has been approved by |
fn cmp(&self, other: &Rc<T>) -> Ordering { (**self).cmp(&**other) } | ||
} | ||
#[stable(feature = "rust1", since = "1.0.0")] | ||
#[cfg(not(stage0))] | ||
impl<T: Ord> Ord for Rc<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps a forgotten ?Sized
annotation here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, thanks. Fixed.
Most of `Rc`’s trait implementations were DST-ified in #24619, but not these ones.
Most of
Rc
’s trait implementations were DST-ified in #24619, but not these ones.