File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 121
121
#![ feature( const_float_methods) ]
122
122
#![ feature( const_heap) ]
123
123
#![ feature( const_nonnull_new) ]
124
- #![ feature( const_pin_2) ]
125
124
#![ feature( const_ptr_sub_ptr) ]
126
125
#![ feature( const_raw_ptr_comparison) ]
127
126
#![ feature( const_size_of_val) ]
Original file line number Diff line number Diff line change @@ -1214,7 +1214,8 @@ impl<Ptr: Deref<Target: Unpin>> Pin<Ptr> {
1214
1214
/// assert_eq!(*r, 5);
1215
1215
/// ```
1216
1216
#[ inline( always) ]
1217
- #[ rustc_const_unstable( feature = "const_pin_2" , issue = "76654" ) ]
1217
+ #[ rustc_allow_const_fn_unstable( const_precise_live_drops) ]
1218
+ #[ rustc_const_stable( feature = "const_pin" , since = "CURRENT_RUSTC_VERSION" ) ]
1218
1219
#[ stable( feature = "pin_into_inner" , since = "1.39.0" ) ]
1219
1220
pub const fn into_inner ( pin : Pin < Ptr > ) -> Ptr {
1220
1221
pin. __pointer
@@ -1503,7 +1504,8 @@ impl<Ptr: Deref> Pin<Ptr> {
1503
1504
/// If the underlying data is [`Unpin`], [`Pin::into_inner`] should be used
1504
1505
/// instead.
1505
1506
#[ inline( always) ]
1506
- #[ rustc_const_unstable( feature = "const_pin_2" , issue = "76654" ) ]
1507
+ #[ rustc_allow_const_fn_unstable( const_precise_live_drops) ]
1508
+ #[ rustc_const_stable( feature = "const_pin" , since = "CURRENT_RUSTC_VERSION" ) ]
1507
1509
#[ stable( feature = "pin_into_inner" , since = "1.39.0" ) ]
1508
1510
pub const unsafe fn into_inner_unchecked ( pin : Pin < Ptr > ) -> Ptr {
1509
1511
pin. __pointer
Original file line number Diff line number Diff line change 21
21
#![ feature( const_eval_select) ]
22
22
#![ feature( const_heap) ]
23
23
#![ feature( const_nonnull_new) ]
24
- #![ feature( const_pin_2) ]
25
24
#![ feature( const_trait_impl) ]
26
25
#![ feature( core_intrinsics) ]
27
26
#![ feature( core_io_borrowed_buf) ]
You can’t perform that action at this time.
0 commit comments