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 502df1b commit 6a2f44eCopy full SHA for 6a2f44e
library/alloc/src/raw_vec.rs
@@ -60,6 +60,11 @@ impl Cap {
60
#[allow(missing_debug_implementations)]
61
pub(crate) struct RawVec<T, A: Allocator = Global> {
62
ptr: Unique<T>,
63
+ /// Never used for ZSTs; it's `capacity()`'s responsibility to return usize::MAX in that case.
64
+ ///
65
+ /// # Safety
66
67
+ /// `cap` must be in the `0..=isize::MAX` range.
68
cap: Cap,
69
alloc: A,
70
}
0 commit comments