From a9e92be1f98605f343dfc6684107e236e6606947 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 21 Nov 2022 15:10:59 -0800 Subject: [PATCH] Bump ptr_to_from_bits deprecation to Rust 1.67 --- library/core/src/ptr/const_ptr.rs | 4 ++-- library/core/src/ptr/mut_ptr.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/core/src/ptr/const_ptr.rs b/library/core/src/ptr/const_ptr.rs index 2c371f635ab..e966e1bb466 100644 --- a/library/core/src/ptr/const_ptr.rs +++ b/library/core/src/ptr/const_ptr.rs @@ -120,7 +120,7 @@ impl *const T { /// ``` #[unstable(feature = "ptr_to_from_bits", issue = "91126")] #[rustc_deprecated( - since = "1.62", + since = "1.67", reason = "replaced by the `exposed_addr` method, or update your code \ to follow the strict provenance rules using its APIs" )] @@ -146,7 +146,7 @@ impl *const T { /// ``` #[unstable(feature = "ptr_to_from_bits", issue = "91126")] #[rustc_deprecated( - since = "1.62", + since = "1.67", reason = "replaced by the `ptr::from_exposed_addr` function, or update \ your code to follow the strict provenance rules using its APIs" )] diff --git a/library/core/src/ptr/mut_ptr.rs b/library/core/src/ptr/mut_ptr.rs index 79682531562..9507e8430c7 100644 --- a/library/core/src/ptr/mut_ptr.rs +++ b/library/core/src/ptr/mut_ptr.rs @@ -126,7 +126,7 @@ impl *mut T { /// ``` #[unstable(feature = "ptr_to_from_bits", issue = "91126")] #[rustc_deprecated( - since = "1.62", + since = "1.67", reason = "replaced by the `exposed_addr` method, or update your code \ to follow the strict provenance rules using its APIs" )] @@ -152,7 +152,7 @@ impl *mut T { /// ``` #[unstable(feature = "ptr_to_from_bits", issue = "91126")] #[rustc_deprecated( - since = "1.62", + since = "1.67", reason = "replaced by the `ptr::from_exposed_addr_mut` function, or \ update your code to follow the strict provenance rules using its APIs" )]