We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c3ae7d commit bd94763Copy full SHA for bd94763
library/core/src/ptr/mod.rs
@@ -591,6 +591,7 @@ pub const fn invalid_mut<T>(addr: usize) -> *mut T {
591
/// the program has undefined behavior. In particular, the aliasing rules still apply: pointers
592
/// and references that have been invalidated due to aliasing accesses cannot be used any more,
593
/// even if they have been exposed!
594
+///
595
/// Note that there is no algorithm that decides which provenance will be used. You can think of this
596
/// as "guessing" the right provenance, and the guess will be "maximally in your favor", in the sense
597
/// that if there is any way to avoid undefined behavior (while upholding all aliasing requirements),
0 commit comments