Allow shortening reborrows · qinheping/verify-rust-std@7b1c5e8 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit 7b1c5e8
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.
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1408,7 +1408,6 @@ impl<Ptr: DerefMut> Pin { | ||
1408 | 1408 | /// } |
1409 | 1409 | /// } |
1410 | 1410 | /// ``` |
1411 | - #[cfg_attr(not(bootstrap), lang = "pin_as_mut")] | |
1412 | 1411 | #[stable(feature = "pin", since = "1.33.0")] |
1413 | 1412 | #[inline(always)] |
1414 | 1413 | pub fn as_mut(&mut self) -> Pin<&mut Ptr::Target> { |