summary refs log tree commit diff
path: root/library/alloc/src/vec
AgeCommit message (Expand)AuthorLines
2023-05-15Mark internal functions and traits unsafeLegionMammal978-4/+5
2023-05-15Change Vec examples to not assert exact capacity except where it is guaranteedWim Looman-6/+6
2023-05-08Auto merge of #106621 - ozkanonur:enable-elided-lifetimes-for-doctests, r=Mar...bors-5/+5
2023-05-07enable `rust_2018_idioms` for doctestsozkanonur-5/+5
2023-04-28replace version placeholdersPietro Albini-1/+1
2023-04-26Rollup merge of #110419 - jsoref:spelling-library, r=jyn514Matthias Krüger-1/+1
2023-04-26Spelling library/Josh Soref-1/+1
2023-04-22Rollup merge of #110635 - scottmcm:zst-checks, r=the8472Yuki Okushi-7/+3
2023-04-21More `IS_ZST` in `library`Scott McMurray-7/+3
2023-04-20More `mem::take` in `library`Scott McMurray-1/+1
2023-04-16rm const traits in libcoreDeadbeef-2/+1
2023-04-12remove some unneeded importsKaDiWa-7/+3
2023-03-27replace advance_by returning usize with Result<(), NonZeroUsize>The 8472-4/+5
2023-03-27Change advance(_back)_by to return `usize` instead of `Result<(), usize>`The 8472-10/+4
2023-03-25Auto merge of #99929 - the8472:default-iters, r=scottmcmbors-0/+18
2023-03-21Auto merge of #106967 - saethlin:remove-vec-as-ptr-assume, r=thomccbors-11/+2
2023-02-28Support allocators in various Default for IntoIter implsThe 8472-2/+5
2023-02-28rewrite iterator `Default` tests as doctestsThe 8472-0/+8
2023-02-28Implement Default for some alloc/core iteratorsThe 8472-0/+7
2023-02-27Remove or justify use of #[rustc_box]Ben Kimock-4/+1
2023-02-23docs: use intra-doc links for `Vec::get(_mut)`Michael Howell-2/+2
2023-02-19Remove the assume(!is_null) from Vec::as_ptrBen Kimock-11/+2
2023-01-28vec: Use SpecCloneIntoVec::clone_into to implement Vec::clone_fromNeil Roberts-30/+1
2023-01-19Auto merge of #106989 - clubby789:is-zero-num, r=scottmcmbors-1/+19
2023-01-18Update `IsZero` documentationclubby789-1/+2
2023-01-18Implement `alloc::vec::IsZero` for `Option<$NUM>` typesclubby789-0/+17
2023-01-17Don't do pointer arithmetic on pointers to deallocated memoryThe 8472-3/+9
2023-01-14Remove various double spaces in source comments.André Vennberg-6/+6
2023-01-07Document that `Vec::from_raw_parts[_in]` must be given a pointer from the cor...Kevin Reid-0/+5
2022-12-30Replace libstd, libcore, liballoc in line comments.jonathanCogan-2/+2
2022-12-27Update the documentation of `Vec` to use `extend(array)` instead of `extend(a...Chayim Refael Friedman-1/+1
2022-12-23fix one more unaligned self.ptr, and add testsRalf Jung-1/+1
2022-12-23fix IntoIter::drop on high-alignment ZSTRalf Jung-10/+11
2022-12-08Apply review feedback; Fix no_global_oom_handling buildScott McMurray-0/+2
2022-12-08Make `VecDeque::from_iter` O(1) from `vec(_deque)::IntoIter`Scott McMurray-0/+27
2022-11-28improve docFabian Hintringer-1/+10
2022-11-24Tune RepeatWith::try_fold and Take::for_each and Vec::extend_trustedScott McMurray-5/+9
2022-11-24Stop peeling the last iteration of the loop in `Vec::repeat_with`Scott McMurray-11/+1
2022-11-24Extract the logic for `TrustedLen` to a named method that can be called directlyScott McMurray-32/+37
2022-11-06Vec: IntoIterator signature consistencyripytide-3/+3
2022-11-03Fixed typosDouwe Schulte-2/+2
2022-10-24Clairify Vec::capacity docsNixon Enraght-Moony-2/+3
2022-10-22Rollup merge of #103359 - WaffleLapkin:drain_no_mut_qqq, r=scottmcmMatthias Krüger-3/+1
2022-10-21Remove incorrect comment in `Vec::drain`Maybe Waffle-3/+1
2022-10-19Rollup merge of #103153 - ChrisDenton:leak-oom, r=m-ou-seDylan DPC-1/+0
2022-10-17Remove all uses of array_assume_initAlex Saveau-2/+2
2022-10-17Allow `Vec::leak` with `no_global_oom_handling`Chris Denton-1/+0
2022-10-10Auto merge of #102596 - scottmcm:option-bool-calloc, r=Mark-Simulacrumbors-0/+22
2022-10-09Auto merge of #89123 - the8472:push_in_capacity, r=amanieubors-0/+45
2022-10-04Rollup merge of #101642 - SkiFire13:fix-inplace-collection-leak, r=the8472Dylan DPC-6/+32