Skip to content

Commit bd94763

Browse files
saethlinRalfJung
andauthored
Update library/core/src/ptr/mod.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent 0c3ae7d commit bd94763

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/ptr/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ pub const fn invalid_mut<T>(addr: usize) -> *mut T {
591591
/// the program has undefined behavior. In particular, the aliasing rules still apply: pointers
592592
/// and references that have been invalidated due to aliasing accesses cannot be used any more,
593593
/// even if they have been exposed!
594+
///
594595
/// Note that there is no algorithm that decides which provenance will be used. You can think of this
595596
/// as "guessing" the right provenance, and the guess will be "maximally in your favor", in the sense
596597
/// that if there is any way to avoid undefined behavior (while upholding all aliasing requirements),

0 commit comments

Comments
 (0)