-
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
Reborrow Pin<P> using &mut in Pin::set
#57419
Conversation
This makes it possible to call `.set` multiple times without using `.as_mut()` first to reborrow the pointer.
@bors r=me This needs to be backported to beta, I'm not sure about the procedure here. |
@bors: r=withouboats |
📌 Commit 68e98a2 has been approved by |
@bors r=withoutboats |
@bors p=1 Giving prio to make sure this lands since it's beta-nominated/accepted and beta=>stable happens soon. |
Reborrow Pin<P> using &mut in `Pin::set` Fixes #57339. This makes it possible to call `.set` multiple times without using `.as_mut()` first to reborrow the pointer. r? @withoutboats cc @rust-lang/libs
☀️ Test successful - status-appveyor, status-travis |
I think there was some confusion here.. |
Oops my bad, can confirm nothing needed for a backport! |
Fixes #57339.
This makes it possible to call
.set
multiple times withoutusing
.as_mut()
first to reborrow the pointer.r? @withoutboats
cc @rust-lang/libs