Skip to content

Commit ee87c80

Browse files
committed
allow const_mut_refs
1 parent 3c142b0 commit ee87c80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/slice/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ impl<T> [T] {
500500
/// ```
501501
#[stable(feature = "rust1", since = "1.0.0")]
502502
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.60.0")]
503+
#[rustc_allow_const_fn_unstable(const_mut_refs)]
503504
#[inline]
504505
#[must_use]
505506
pub const fn as_mut_ptr(&mut self) -> *mut T {
@@ -579,6 +580,7 @@ impl<T> [T] {
579580
/// [`as_mut_ptr`]: slice::as_mut_ptr
580581
#[stable(feature = "slice_ptr_range", since = "1.48.0")]
581582
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.60.0")]
583+
#[rustc_allow_const_fn_unstable(const_mut_refs)]
582584
#[inline]
583585
#[must_use]
584586
pub const fn as_mut_ptr_range(&mut self) -> Range<*mut T> {

0 commit comments

Comments
 (0)