-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Implement coercions between &pin (mut|const) T and &(mut) T when T: Unpin
#149130
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
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
29a89ae to
92596db
Compare
|
Some changes occurred in need_type_info.rs cc @lcnr Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred in exhaustiveness checking cc @Nadrieril |
|
r? @nnethercote rustbot has assigned @nnethercote. Use |
|
I am not a good person to review this. How about... r? @lcnr |
|
r? types |
|
r? types |
|
☔ The latest upstream changes (presumably #148602) made this pull request unmergeable. Please resolve the merge conflicts. |
92596db to
500d786
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
☔ The latest upstream changes (presumably #150115) made this pull request unmergeable. Please resolve the merge conflicts. |
This allows the following (mutual) coercions when
T: Unpin:&T<->Pin<&T>&mut T<->Pin<&mut T>&mut T->Pin<&T>Pin<&mut T>->&TPart of Pin Ergonomics.