Bump ptr_to_from_bits deprecation to Rust 1.67

This commit is contained in:
David Tolnay 2022-11-21 15:10:59 -08:00
parent 4d37d1f422
commit a9e92be1f9
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
2 changed files with 4 additions and 4 deletions

View file

@ -120,7 +120,7 @@ impl<T: ?Sized> *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<T: ?Sized> *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"
)]

View file

@ -126,7 +126,7 @@ impl<T: ?Sized> *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<T: ?Sized> *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"
)]