mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-10 08:57:36 +00:00
Rollup merge of #62371 - Nemo157:fix-62288, r=Centril
Add tracking issue for Box::into_pin Fixes #62288
This commit is contained in:
commit
ccd925bc7d
@ -320,7 +320,7 @@ impl<T: ?Sized> Box<T> {
|
|||||||
/// This conversion does not allocate on the heap and happens in place.
|
/// This conversion does not allocate on the heap and happens in place.
|
||||||
///
|
///
|
||||||
/// This is also available via [`From`].
|
/// This is also available via [`From`].
|
||||||
#[unstable(feature = "box_into_pin", issue = "0")]
|
#[unstable(feature = "box_into_pin", issue = "62370")]
|
||||||
pub fn into_pin(boxed: Box<T>) -> Pin<Box<T>> {
|
pub fn into_pin(boxed: Box<T>) -> Pin<Box<T>> {
|
||||||
// It's not possible to move or replace the insides of a `Pin<Box<T>>`
|
// It's not possible to move or replace the insides of a `Pin<Box<T>>`
|
||||||
// when `T: !Unpin`, so it's safe to pin it directly without any
|
// when `T: !Unpin`, so it's safe to pin it directly without any
|
||||||
|
Loading…
Reference in New Issue
Block a user