-
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
Implement Borrow<T> and BorrowMut<T> for Box<T: ?Sized> #26122
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
r? @aturon This change seems logical, it allows the Question is of course, if it is a breaking change in any way, or if it's simple to introduce? |
I would be ok with these trait implementations, but a recent change to add a I believe, however, that |
I'll run this through crater. Nominating since it's regression-prone, so better to get it out sooner? |
I guess that if you have a At any rate, I precipitated this pull request by enquiring about |
It's a breaking change but a minor change. I expected no trouble, but I understand the situation is the same. I think for our Map collections it can't break anything, it will only allow more types to use @brson Bringing out crater is great, but I didn't think this was such high stakes 😄 |
triage: beta-accepted pending merging plus a crater run |
No regressions. https://gist.github.com/brson/1e14d7129c7d3c770b52 |
@brson 998 unknown crates though? |
@bluss Ugh, idk what happened. I'll run it again. |
OK, now it's run, still looks good https://gist.github.com/brson/1e14d7129c7d3c770b52 |
Yes, no impact whatsoever on crater, great! |
Implement Borrow<T> and BorrowMut<T> for Box<T: ?Sized>
⌛ Testing commit 4fdb4cf with merge 2fbbd54... |
Implement Borrow and BorrowMut for Box<T: ?Sized>