We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45bc746 commit 8f9ba12Copy full SHA for 8f9ba12
library/core/src/slice/mod.rs
@@ -479,6 +479,7 @@ impl<T> [T] {
479
/// ```
480
#[stable(feature = "rust1", since = "1.0.0")]
481
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.60.0")]
482
+ #[rustc_allow_const_fn_unstable(const_mut_refs)]
483
#[inline]
484
pub const fn as_mut_ptr(&mut self) -> *mut T {
485
self as *mut [T] as *mut T
@@ -556,6 +557,7 @@ impl<T> [T] {
556
557
/// [`as_mut_ptr`]: slice::as_mut_ptr
558
#[stable(feature = "slice_ptr_range", since = "1.48.0")]
559
560
561
562
pub const fn as_mut_ptr_range(&mut self) -> Range<*mut T> {
563
let start = self.as_mut_ptr();
0 commit comments