Skip to content

Commit

Permalink
Rollup merge of #103800 - danielhenrymantilla:stabilize-pin-macro, r=…
Browse files Browse the repository at this point in the history
…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?)
  • Loading branch information
compiler-errors authored Jan 12, 2023
2 parents 464db61 + 4529030 commit 71e2f3f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tests/pass/issues/issue-miri-2068.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(pin_macro)]

use core::future::Future;
use core::pin::Pin;
use core::task::{Context, Poll};
Expand Down
2 changes: 0 additions & 2 deletions tests/pass/stacked-borrows/future-self-referential.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(pin_macro)]

use std::future::*;
use std::marker::PhantomPinned;
use std::pin::*;
Expand Down

0 comments on commit 71e2f3f

Please sign in to comment.