File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 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 {
255255/// ```
256256#[ inline]
257257#[ 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" ) ]
259259pub const fn slice_from_raw_parts < T > ( data : * const T , len : usize ) -> * const [ T ] {
260260 from_raw_parts ( data. cast ( ) , len)
261261}
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ use crate::ptr;
8484/// [`NonNull::dangling()`]: ptr::NonNull::dangling
8585#[ inline]
8686#[ 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" ) ]
8888pub const unsafe fn from_raw_parts < ' a , T > ( data : * const T , len : usize ) -> & ' a [ T ] {
8989 debug_check_data_len ( data, len) ;
9090
You can’t perform that action at this time.
0 commit comments