From 4129e0757a682e5177690ff34df9cc4480257a24 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 23 Aug 2020 16:09:30 +0200 Subject: [PATCH] bump stable version Co-authored-by: Josh Stone --- library/core/src/ptr/const_ptr.rs | 2 +- library/core/src/ptr/mut_ptr.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/ptr/const_ptr.rs b/library/core/src/ptr/const_ptr.rs index cc5e193852c0f..fc70dec16f618 100644 --- a/library/core/src/ptr/const_ptr.rs +++ b/library/core/src/ptr/const_ptr.rs @@ -361,7 +361,7 @@ impl *const T { /// let zero = ptr2_other.offset_from(ptr2); // Undefined Behavior /// } /// ``` - #[stable(feature = "ptr_offset_from", since = "1.46.0")] + #[stable(feature = "ptr_offset_from", since = "1.47.0")] #[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "41079")] #[inline] pub const unsafe fn offset_from(self, origin: *const T) -> isize diff --git a/library/core/src/ptr/mut_ptr.rs b/library/core/src/ptr/mut_ptr.rs index c85a3a50543b8..2d25f21e55c76 100644 --- a/library/core/src/ptr/mut_ptr.rs +++ b/library/core/src/ptr/mut_ptr.rs @@ -532,7 +532,7 @@ impl *mut T { /// let zero = ptr2_other.offset_from(ptr2); // Undefined Behavior /// } /// ``` - #[stable(feature = "ptr_offset_from", since = "1.46.0")] + #[stable(feature = "ptr_offset_from", since = "1.47.0")] #[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "41079")] #[inline] pub const unsafe fn offset_from(self, origin: *const T) -> isize