File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ pub const fn null_mut<T>() -> *mut T {
255
255
/// ```
256
256
#[ inline]
257
257
#[ stable( feature = "slice_from_raw_parts" , since = "1.42.0" ) ]
258
- #[ rustc_const_stable( since = "1.61.0" ) ]
258
+ #[ rustc_const_stable( feature = "const_slice_from_raw_parts" , since = "1.61.0" ) ]
259
259
pub const fn slice_from_raw_parts < T > ( data : * const T , len : usize ) -> * const [ T ] {
260
260
from_raw_parts ( data. cast ( ) , len)
261
261
}
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ use crate::ptr;
84
84
/// [`NonNull::dangling()`]: ptr::NonNull::dangling
85
85
#[ inline]
86
86
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
87
- #[ rustc_const_stable( since = "1.61.0" ) ]
87
+ #[ rustc_const_stable( feature = "const_slice_from_raw_parts" , since = "1.61.0" ) ]
88
88
pub const unsafe fn from_raw_parts < ' a , T > ( data : * const T , len : usize ) -> & ' a [ T ] {
89
89
debug_check_data_len ( data, len) ;
90
90
You can’t perform that action at this time.
0 commit comments