Skip to content

Commit 71e2f3f

Browse files
Rollup merge of #103800 - danielhenrymantilla:stabilize-pin-macro, r=dtolnay
Stabilize `::{core,std}::pin::pin!` As discussed [over here](rust-lang/rust#93178 (comment)), it looks like a decent time to stabilize the `pin!` macro. ### Public API ```rust // in module `core::pin` /// API: `fn pin<T>($value: T) -> Pin<&'local mut T>` pub macro pin($value:expr $(,)?) { … } ``` - Tracking issue: #93178 (now all this needs is an FCP by the proper team?)
2 parents 464db61 + 4529030 commit 71e2f3f

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

tests/pass/issues/issue-miri-2068.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(pin_macro)]
2-
31
use core::future::Future;
42
use core::pin::Pin;
53
use core::task::{Context, Poll};

tests/pass/stacked-borrows/future-self-referential.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(pin_macro)]
2-
31
use std::future::*;
42
use std::marker::PhantomPinned;
53
use std::pin::*;

0 commit comments

Comments
 (0)