-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 methods that require Self:Sized
to be object safe (RFC 817)
#22301
Allow methods that require Self:Sized
to be object safe (RFC 817)
#22301
Conversation
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
Ping? |
// future, it would be.) But we know that the true `Self` DOES implement | ||
// the trait. So we just delete this requirement. Hack hack hack. | ||
let mut method_predicates = pick.method_ty.predicates.instantiate(self.tcx(), &all_substs); | ||
match pick.kind { |
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.
It is weird to me that this code can just be plain deleted, was it serving no purpose?
…code that I've been longing to remove for quite some time.
e8f1b15
to
fd9f7da
Compare
@huonw that code was serving a purpose when |
@huonw just rebased and added the code about by-value-self, should be ready for r? now |
@bors r+ fd9f |
…ods, r=huonw RFC 817 is not yet accepted, but I wanted to put this code up so people can see how it works. And to be ready lest it should be accepted. cc rust-lang/rfcs#817
RFC 817 is not yet accepted, but I wanted to put this code up so people can see how it works. And to be ready lest it should be accepted.
cc rust-lang/rfcs#817