move some const fn out of the const_ptr_as_ref feature · qinheping/verify-rust-std@f28b1d1 (original) (raw)
`@@ -310,7 +310,7 @@ impl<T: ?Sized> *mut T {
`
310
310
```` /// ```
`311`
`311`
`` // FIXME: mention it in the docs for `as_ref` and `as_uninit_ref` once stabilized.
``
`312`
`312`
`#[unstable(feature = "ptr_as_ref_unchecked", issue = "122034")]
`
`313`
``
`-
#[rustc_const_unstable(feature = "const_ptr_as_ref", issue = "91822")]
`
``
`313`
`+
#[rustc_const_unstable(feature = "ptr_as_ref_unchecked", issue = "122034")]
`
`314`
`314`
`#[inline]
`
`315`
`315`
`#[must_use]
`
`316`
`316`
`pub const unsafe fn as_ref_unchecked<'a>(self) -> &'a T {
`
`@@ -349,7 +349,7 @@ impl<T: ?Sized> *mut T {
`
`349`
`349`
```` /// ```
350
350
`#[inline]
`
351
351
`#[unstable(feature = "ptr_as_uninit", issue = "75402")]
`
352
``
`-
#[rustc_const_unstable(feature = "const_ptr_as_ref", issue = "91822")]
`
``
352
`+
#[rustc_const_unstable(feature = "ptr_as_uninit", issue = "75402")]
`
353
353
`pub const unsafe fn as_uninit_ref<'a>(self) -> Option<&'a MaybeUninit>
`
354
354
`where
`
355
355
`T: Sized,
`
`@@ -631,7 +631,7 @@ impl<T: ?Sized> *mut T {
`
631
631
```` /// ```
````
632
632
`` // FIXME: mention it in the docs for as_mut
and as_uninit_mut
once stabilized.
``
633
633
`#[unstable(feature = "ptr_as_ref_unchecked", issue = "122034")]
`
634
``
`-
#[rustc_const_unstable(feature = "const_ptr_as_ref", issue = "91822")]
`
``
634
`+
#[rustc_const_unstable(feature = "ptr_as_ref_unchecked", issue = "122034")]
`
635
635
`#[inline]
`
636
636
`#[must_use]
`
637
637
`pub const unsafe fn as_mut_unchecked<'a>(self) -> &'a mut T {
`
`@@ -654,7 +654,7 @@ impl<T: ?Sized> *mut T {
`
654
654
`/// the pointer is convertible to a reference.
`
655
655
`#[inline]
`
656
656
`#[unstable(feature = "ptr_as_uninit", issue = "75402")]
`
657
``
`-
#[rustc_const_unstable(feature = "const_ptr_as_ref", issue = "91822")]
`
``
657
`+
#[rustc_const_unstable(feature = "ptr_as_uninit", issue = "75402")]
`
658
658
`pub const unsafe fn as_uninit_mut<'a>(self) -> Option<&'a mut MaybeUninit>
`
659
659
`where
`
660
660
`T: Sized,
`
`@@ -2031,7 +2031,7 @@ impl *mut [T] {
`
2031
2031
`/// [allocated object]: crate::ptr#allocated-object
`
2032
2032
`#[inline]
`
2033
2033
`#[unstable(feature = "ptr_as_uninit", issue = "75402")]
`
2034
``
`-
#[rustc_const_unstable(feature = "const_ptr_as_ref", issue = "91822")]
`
``
2034
`+
#[rustc_const_unstable(feature = "ptr_as_uninit", issue = "75402")]
`
2035
2035
`pub const unsafe fn as_uninit_slice<'a>(self) -> Option<&'a [MaybeUninit]> {
`
2036
2036
`if self.is_null() {
`
2037
2037
`None
`
`@@ -2083,7 +2083,7 @@ impl *mut [T] {
`
2083
2083
`/// [allocated object]: crate::ptr#allocated-object
`
2084
2084
`#[inline]
`
2085
2085
`#[unstable(feature = "ptr_as_uninit", issue = "75402")]
`
2086
``
`-
#[rustc_const_unstable(feature = "const_ptr_as_ref", issue = "91822")]
`
``
2086
`+
#[rustc_const_unstable(feature = "ptr_as_uninit", issue = "75402")]
`
2087
2087
`pub const unsafe fn as_uninit_slice_mut<'a>(self) -> Option<&'a mut [MaybeUninit]> {
`
2088
2088
`if self.is_null() {
`
2089
2089
`None
`