about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-21 19:36:49 +0100
committerGitHub <noreply@github.com>2022-02-21 19:36:49 +0100
commit74cb6b77a00c46a7deb2707dfafa5ea28eb5e83f (patch)
treec1664c3bc3d6e98d1ecddf4354ce6c1eb23bc17d
parentda25e1e59cce43487ccb0aa60c60a2700baf5a75 (diff)
parent72a7e731e16dab4f0638a3155a22c1d14b18c055 (diff)
downloadrust-74cb6b77a00c46a7deb2707dfafa5ea28eb5e83f.tar.gz
rust-74cb6b77a00c46a7deb2707dfafa5ea28eb5e83f.zip
Rollup merge of #94186 - ehuss:pin-stable-1.61, r=m-ou-se
Update pin_static_ref stabilization version.

#93580 slipped into 1.61

cc `@m-ou-se`
-rw-r--r--library/core/src/pin.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/pin.rs b/library/core/src/pin.rs
index ebfd12d1533..e2b0e90e2bf 100644
--- a/library/core/src/pin.rs
+++ b/library/core/src/pin.rs
@@ -805,7 +805,7 @@ impl<T: ?Sized> Pin<&'static T> {
     ///
     /// This is safe, because `T` is borrowed for the `'static` lifetime, which
     /// never ends.
-    #[stable(feature = "pin_static_ref", since = "1.60.0")]
+    #[stable(feature = "pin_static_ref", since = "1.61.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
@@ -858,7 +858,7 @@ impl<T: ?Sized> Pin<&'static mut T> {
     ///
     /// This is safe, because `T` is borrowed for the `'static` lifetime, which
     /// never ends.
-    #[stable(feature = "pin_static_ref", since = "1.60.0")]
+    #[stable(feature = "pin_static_ref", since = "1.61.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