Bump const_ptr_offset stabilization to 1.61
This commit is contained in:
parent
022756f814
commit
333756f1c5
4 changed files with 17 additions and 17 deletions
|
@ -285,7 +285,7 @@ impl<T: ?Sized> *const T {
|
|||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[must_use = "returns a new pointer rather than modifying its argument"]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.60.0")]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.61.0")]
|
||||
#[inline(always)]
|
||||
pub const unsafe fn offset(self, count: isize) -> *const T
|
||||
where
|
||||
|
@ -347,7 +347,7 @@ impl<T: ?Sized> *const T {
|
|||
/// ```
|
||||
#[stable(feature = "ptr_wrapping_offset", since = "1.16.0")]
|
||||
#[must_use = "returns a new pointer rather than modifying its argument"]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.60.0")]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.61.0")]
|
||||
#[inline(always)]
|
||||
pub const fn wrapping_offset(self, count: isize) -> *const T
|
||||
where
|
||||
|
@ -566,7 +566,7 @@ impl<T: ?Sized> *const T {
|
|||
/// ```
|
||||
#[stable(feature = "pointer_methods", since = "1.26.0")]
|
||||
#[must_use = "returns a new pointer rather than modifying its argument"]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.60.0")]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.61.0")]
|
||||
#[inline(always)]
|
||||
pub const unsafe fn add(self, count: usize) -> Self
|
||||
where
|
||||
|
@ -630,7 +630,7 @@ impl<T: ?Sized> *const T {
|
|||
/// ```
|
||||
#[stable(feature = "pointer_methods", since = "1.26.0")]
|
||||
#[must_use = "returns a new pointer rather than modifying its argument"]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.60.0")]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.61.0")]
|
||||
#[inline]
|
||||
pub const unsafe fn sub(self, count: usize) -> Self
|
||||
where
|
||||
|
@ -693,7 +693,7 @@ impl<T: ?Sized> *const T {
|
|||
/// ```
|
||||
#[stable(feature = "pointer_methods", since = "1.26.0")]
|
||||
#[must_use = "returns a new pointer rather than modifying its argument"]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.60.0")]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.61.0")]
|
||||
#[inline(always)]
|
||||
pub const fn wrapping_add(self, count: usize) -> Self
|
||||
where
|
||||
|
@ -755,7 +755,7 @@ impl<T: ?Sized> *const T {
|
|||
/// ```
|
||||
#[stable(feature = "pointer_methods", since = "1.26.0")]
|
||||
#[must_use = "returns a new pointer rather than modifying its argument"]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.60.0")]
|
||||
#[rustc_const_stable(feature = "const_ptr_offset", since = "1.61.0")]
|
||||
#[inline]
|
||||
pub const fn wrapping_sub(self, count: usize) -> Self
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue