diff options
| author | Tim Diekmann <tim.diekmann@3dvision.de> | 2020-03-25 18:42:31 +0100 |
|---|---|---|
| committer | Tim Diekmann <tim.diekmann@3dvision.de> | 2020-03-26 17:12:57 +0100 |
| commit | aae3c52c7aaa9115ba8f34604c34a11f7d4f5e2e (patch) | |
| tree | 12f1dd16016ced561a0a94c0fec636708c681d18 /src/liballoc | |
| parent | ba26a9e9579f4906a782635f3261781935dadee2 (diff) | |
| download | rust-aae3c52c7aaa9115ba8f34604c34a11f7d4f5e2e.tar.gz rust-aae3c52c7aaa9115ba8f34604c34a11f7d4f5e2e.zip | |
Remove the note on the internal capacity field in `RawVec`
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/raw_vec.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/liballoc/raw_vec.rs b/src/liballoc/raw_vec.rs index 3bf481a291c..ba810bf5faf 100644 --- a/src/liballoc/raw_vec.rs +++ b/src/liballoc/raw_vec.rs @@ -41,9 +41,7 @@ mod tests; /// /// Note that the excess of a zero-sized types is always infinite, so `capacity()` always returns /// `usize::MAX`. This means that you need to be careful when round-tripping this type with a -/// `Box<[T]>`, since `capacity()` won't yield the length. However, `with_capacity`, -/// `shrink_to_fit`, and `from_box` will actually set `RawVec`'s private capacity field. This allows -/// zero-sized types to not be special-cased by consumers of this type. +/// `Box<[T]>`, since `capacity()` won't yield the length. #[allow(missing_debug_implementations)] pub struct RawVec<T, A: AllocRef = Global> { ptr: Unique<T>, |
