Skip to content

Commit c05276a

Browse files
committed
Stabilize pin_static_ref.
1 parent 4e8fb74 commit c05276a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

library/core/src/pin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ impl<T: ?Sized> Pin<&'static T> {
798798
///
799799
/// This is safe, because `T` is borrowed for the `'static` lifetime, which
800800
/// never ends.
801-
#[unstable(feature = "pin_static_ref", issue = "78186")]
801+
#[stable(feature = "pin_static_ref", since = "1.60.0")]
802802
#[rustc_const_unstable(feature = "const_pin", issue = "76654")]
803803
pub const fn static_ref(r: &'static T) -> Pin<&'static T> {
804804
// SAFETY: The 'static borrow guarantees the data will not be
@@ -851,7 +851,7 @@ impl<T: ?Sized> Pin<&'static mut T> {
851851
///
852852
/// This is safe, because `T` is borrowed for the `'static` lifetime, which
853853
/// never ends.
854-
#[unstable(feature = "pin_static_ref", issue = "78186")]
854+
#[stable(feature = "pin_static_ref", since = "1.60.0")]
855855
#[rustc_const_unstable(feature = "const_pin", issue = "76654")]
856856
pub const fn static_mut(r: &'static mut T) -> Pin<&'static mut T> {
857857
// SAFETY: The 'static borrow guarantees the data will not be

library/std/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@
310310
#![feature(panic_internals)]
311311
#![feature(panic_can_unwind)]
312312
#![feature(panic_unwind)]
313-
#![feature(pin_static_ref)]
314313
#![feature(platform_intrinsics)]
315314
#![feature(portable_simd)]
316315
#![feature(prelude_import)]

0 commit comments

Comments
 (0)