diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-02-02 12:52:58 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2022-02-04 12:27:33 +0100 |
| commit | c05276ae7b5996049be7b34e497021e3e28156cd (patch) | |
| tree | 45d84eec9cea4089ae358bfcde0421c05d50d7d3 | |
| parent | 4e8fb743ccbec27344b2dd42de7057f41d4ebfdd (diff) | |
| download | rust-c05276ae7b5996049be7b34e497021e3e28156cd.tar.gz rust-c05276ae7b5996049be7b34e497021e3e28156cd.zip | |
Stabilize pin_static_ref.
| -rw-r--r-- | library/core/src/pin.rs | 4 | ||||
| -rw-r--r-- | library/std/src/lib.rs | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/library/core/src/pin.rs b/library/core/src/pin.rs index 09fc6df5429..8cae48e4aba 100644 --- a/library/core/src/pin.rs +++ b/library/core/src/pin.rs @@ -798,7 +798,7 @@ impl<T: ?Sized> Pin<&'static T> { /// /// This is safe, because `T` is borrowed for the `'static` lifetime, which /// never ends. - #[unstable(feature = "pin_static_ref", issue = "78186")] + #[stable(feature = "pin_static_ref", since = "1.60.0")] #[rustc_const_unstable(feature = "const_pin", issue = "76654")] pub const fn static_ref(r: &'static T) -> Pin<&'static T> { // SAFETY: The 'static borrow guarantees the data will not be @@ -851,7 +851,7 @@ impl<T: ?Sized> Pin<&'static mut T> { /// /// This is safe, because `T` is borrowed for the `'static` lifetime, which /// never ends. - #[unstable(feature = "pin_static_ref", issue = "78186")] + #[stable(feature = "pin_static_ref", since = "1.60.0")] #[rustc_const_unstable(feature = "const_pin", issue = "76654")] pub const fn static_mut(r: &'static mut T) -> Pin<&'static mut T> { // SAFETY: The 'static borrow guarantees the data will not be diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 4f44a3183a6..c53101538ec 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -310,7 +310,6 @@ #![feature(panic_internals)] #![feature(panic_can_unwind)] #![feature(panic_unwind)] -#![feature(pin_static_ref)] #![feature(platform_intrinsics)] #![feature(portable_simd)] #![feature(prelude_import)] |
