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 a16ca45 commit 2022ca3Copy full SHA for 2022ca3
packages/std/src/memory.rs
@@ -98,7 +98,7 @@ where
98
/// - `length` is smaller or equal to `capacity`
99
/// - The number of bytes allocated by the pointer must be equal to `capacity`
100
/// - The byte range covered by `length` must be initialized
101
- /// - `ptr` is a non-dangling and non-null pointer
+ /// - `ptr` is a non-null pointer
102
/// - If the generic `Ownership` parameter is set to `Owned`, the `ptr` must point to a memory region allocated by a `Vec`
103
unsafe fn from_parts(ptr: *const u8, capacity: usize, length: usize) -> Self {
104
// Well, this technically violates pointer provenance rules.
0 commit comments