Skip to content

Commit 8dd4bcf

Browse files
committed
more precise wording in with_exposed_provenance
1 parent bc582ea commit 8dd4bcf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/core/src/ptr/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,8 @@ pub const fn dangling_mut<T>() -> *mut T {
661661
/// of *some* pointer that was previously exposed by passing it to
662662
/// [`expose_provenance`][pointer::expose_provenance], or a `ptr as usize` cast. In addition, memory
663663
/// which is outside the control of the Rust abstract machine (MMIO registers, for example) is
664-
/// always considered to be exposed, so long as this memory is disjoint from memory that will be
665-
/// used by the abstract machine such as the stack, heap, and statics.
664+
/// always considered to be accessible with an exposed provenance, so long as this memory is disjoint
665+
/// from memory that will be used by the abstract machine such as the stack, heap, and statics.
666666
///
667667
/// The exact provenance that gets picked is not specified. The compiler will do its best to pick
668668
/// the "right" provenance for you (whatever that may be), but currently we cannot provide any
@@ -701,8 +701,8 @@ pub fn with_exposed_provenance<T>(addr: usize) -> *const T {
701701
/// of *some* pointer that was previously exposed by passing it to
702702
/// [`expose_provenance`][pointer::expose_provenance], or a `ptr as usize` cast. In addition, memory
703703
/// which is outside the control of the Rust abstract machine (MMIO registers, for example) is
704-
/// always considered to be exposed, so long as this memory is disjoint from memory that will be
705-
/// used by the abstract machine such as the stack, heap, and statics.
704+
/// always considered to be accessible with an exposed provenance, so long as this memory is disjoint
705+
/// from memory that will be used by the abstract machine such as the stack, heap, and statics.
706706
///
707707
/// The exact provenance that gets picked is not specified. The compiler will do its best to pick
708708
/// the "right" provenance for you (whatever that may be), but currently we cannot provide any

0 commit comments

Comments
 (0)