File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ impl<T: ?Sized> *const T {
119119 /// assert_eq!(p1.to_bits() - p0.to_bits(), 4);
120120 /// ```
121121 #[ unstable( feature = "ptr_to_from_bits" , issue = "91126" ) ]
122- #[ rustc_deprecated (
122+ #[ deprecated (
123123 since = "1.67" ,
124- reason = "replaced by the `exposed_addr` method, or update your code \
124+ note = "replaced by the `exposed_addr` method, or update your code \
125125 to follow the strict provenance rules using its APIs"
126126 ) ]
127127 pub fn to_bits ( self ) -> usize
@@ -145,9 +145,9 @@ impl<T: ?Sized> *const T {
145145 /// assert_eq!(<*const u8>::from_bits(1), dangling);
146146 /// ```
147147 #[ unstable( feature = "ptr_to_from_bits" , issue = "91126" ) ]
148- #[ rustc_deprecated (
148+ #[ deprecated (
149149 since = "1.67" ,
150- reason = "replaced by the `ptr::from_exposed_addr` function, or update \
150+ note = "replaced by the `ptr::from_exposed_addr` function, or update \
151151 your code to follow the strict provenance rules using its APIs"
152152 ) ]
153153 #[ allow( fuzzy_provenance_casts) ] // this is an unstable and semi-deprecated cast function
Original file line number Diff line number Diff line change @@ -125,9 +125,9 @@ impl<T: ?Sized> *mut T {
125125 /// assert_eq!(p1.to_bits() - p0.to_bits(), 4);
126126 /// ```
127127 #[ unstable( feature = "ptr_to_from_bits" , issue = "91126" ) ]
128- #[ rustc_deprecated (
128+ #[ deprecated (
129129 since = "1.67" ,
130- reason = "replaced by the `exposed_addr` method, or update your code \
130+ note = "replaced by the `exposed_addr` method, or update your code \
131131 to follow the strict provenance rules using its APIs"
132132 ) ]
133133 pub fn to_bits ( self ) -> usize
@@ -151,9 +151,9 @@ impl<T: ?Sized> *mut T {
151151 /// assert_eq!(<*mut u8>::from_bits(1), dangling);
152152 /// ```
153153 #[ unstable( feature = "ptr_to_from_bits" , issue = "91126" ) ]
154- #[ rustc_deprecated (
154+ #[ deprecated (
155155 since = "1.67" ,
156- reason = "replaced by the `ptr::from_exposed_addr_mut` function, or \
156+ note = "replaced by the `ptr::from_exposed_addr_mut` function, or \
157157 update your code to follow the strict provenance rules using its APIs"
158158 ) ]
159159 #[ allow( fuzzy_provenance_casts) ] // this is an unstable and semi-deprecated cast function
You can’t perform that action at this time.
0 commit comments