Skip to content
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

Merged
merged 1 commit into from
May 16, 2015

Conversation

ftxqxd
Copy link
Contributor

@ftxqxd ftxqxd commented May 15, 2015

Most of Rc’s trait implementations were DST-ified in #24619, but not these ones.

@rust-highfive
Copy link
Collaborator

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@luqmana
Copy link
Member

luqmana commented May 15, 2015

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented May 15, 2015

📌 Commit cb56237 has been approved by luqmana

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> {
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks. Fixed.

@ftxqxd ftxqxd force-pushed the rc-unsized-impls branch from cb56237 to fa28642 Compare May 15, 2015 23:03
@alexcrichton
Copy link
Member

@bors: r=luqmana fa28642

@bors
Copy link
Contributor

bors commented May 16, 2015

⌛ Testing commit fa28642 with merge 5e535ea...

bors added a commit that referenced this pull request May 16, 2015
Most of `Rc`’s trait implementations were DST-ified in #24619, but not these ones.
@bors bors merged commit fa28642 into rust-lang:master May 16, 2015
@bors bors mentioned this pull request May 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants