Skip to content

Commit 74cb6b7

Browse files
authored
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`
2 parents da25e1e + 72a7e73 commit 74cb6b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/pin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ impl<T: ?Sized> Pin<&'static T> {
805805
///
806806
/// This is safe, because `T` is borrowed for the `'static` lifetime, which
807807
/// never ends.
808-
#[stable(feature = "pin_static_ref", since = "1.60.0")]
808+
#[stable(feature = "pin_static_ref", since = "1.61.0")]
809809
#[rustc_const_unstable(feature = "const_pin", issue = "76654")]
810810
pub const fn static_ref(r: &'static T) -> Pin<&'static T> {
811811
// SAFETY: The 'static borrow guarantees the data will not be
@@ -858,7 +858,7 @@ impl<T: ?Sized> Pin<&'static mut T> {
858858
///
859859
/// This is safe, because `T` is borrowed for the `'static` lifetime, which
860860
/// never ends.
861-
#[stable(feature = "pin_static_ref", since = "1.60.0")]
861+
#[stable(feature = "pin_static_ref", since = "1.61.0")]
862862
#[rustc_const_unstable(feature = "const_pin", issue = "76654")]
863863
pub const fn static_mut(r: &'static mut T) -> Pin<&'static mut T> {
864864
// SAFETY: The 'static borrow guarantees the data will not be

0 commit comments

Comments
 (0)