Tracking Issue for core::pin::pin!
· Issue #93178 · rust-lang/rust (original) (raw)
Feature gate: #![feature(pin_macro)]
This is a tracking issue for core::pin::pin!
, which allows pinning values to the stack / local scope.
Public API
// core::pin
/// API: fn pin<T>($value: T) -> Pin<&'local mut T>
pub macro pin($value:expr $(,)?) {
…
}
Steps / History
- Implementation: Add a stack-pin!-ning macro to core::pin. #93176
- Final comment period (FCP)
- Stabilization PR: Stabilize ::{core,std}::pin::pin! #103800
(un)Resolved Questions
- Should it be named
pin_mut!
instead, and have apin_ref!
counterpart? (cc @cramertj's Add a stack-pin!-ning macro to core::pin. #93176 (comment))
I claim this has been deemed resolved by this conclusion