Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7b1c5e8

Browse files
committedSep 19, 2024
Allow shortening reborrows
Generating a call to `as_mut()` let to more restrictive borrows than what reborrowing usually gives us. Instead, we change the desugaring to reborrow the pin internals directly which makes things more expressive.
1 parent 56704d4 commit 7b1c5e8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
 

‎core/src/pin.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,6 @@ impl<Ptr: DerefMut> Pin<Ptr> {
14081408
/// }
14091409
/// }
14101410
/// ```
1411-
#[cfg_attr(not(bootstrap), lang = "pin_as_mut")]
14121411
#[stable(feature = "pin", since = "1.33.0")]
14131412
#[inline(always)]
14141413
pub fn as_mut(&mut self) -> Pin<&mut Ptr::Target> {

0 commit comments

Comments
 (0)
Failed to load comments.