File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -186,10 +186,10 @@ impl<T: ?Sized> *const T {
186
186
/// [`with_addr`][pointer::with_addr] or [`map_addr`][pointer::map_addr].
187
187
///
188
188
/// If using those APIs is not possible because there is no way to preserve a pointer with the
189
- /// required provenance, use [`expose_addr`][ pointer::expose_addr] and
190
- /// [`from_exposed_addr `][from_exposed_addr] instead. However, note that this makes
191
- /// your code less portable and less amenable to tools that check for compliance with the Rust
192
- /// memory model.
189
+ /// required provenance, then Strict Provenance might not be for you. Use pointer-integer casts
190
+ /// or [`expose_addr `][pointer::expose_addr] and [`from_exposed_addr`][from_exposed_addr]
191
+ /// instead. However, note that this makes your code less portable and less amenable to tools
192
+ /// that check for compliance with the Rust memory model.
193
193
///
194
194
/// On most platforms this will produce a value with the same bytes as the original
195
195
/// pointer, because all the bytes are dedicated to describing the address.
Original file line number Diff line number Diff line change @@ -193,10 +193,10 @@ impl<T: ?Sized> *mut T {
193
193
/// [`with_addr`][pointer::with_addr] or [`map_addr`][pointer::map_addr].
194
194
///
195
195
/// If using those APIs is not possible because there is no way to preserve a pointer with the
196
- /// required provenance, use [`expose_addr`][ pointer::expose_addr] and
197
- /// [`from_exposed_addr_mut `][from_exposed_addr_mut] instead. However, note that this makes
198
- /// your code less portable and less amenable to tools that check for compliance with the Rust
199
- /// memory model.
196
+ /// required provenance, then Strict Provenance might not be for you. Use pointer-integer casts
197
+ /// or [`expose_addr `][pointer::expose_addr] and [`from_exposed_addr`][from_exposed_addr]
198
+ /// instead. However, note that this makes your code less portable and less amenable to tools
199
+ /// that check for compliance with the Rust memory model.
200
200
///
201
201
/// On most platforms this will produce a value with the same bytes as the original
202
202
/// pointer, because all the bytes are dedicated to describing the address.
You can’t perform that action at this time.
0 commit comments