about summary refs log tree commit diff
path: root/src/liballoc/tests/vec.rs
AgeCommit message (Collapse)AuthorLines
2019-03-10we can now skip should_panic tests with the libtest harnessRalf Jung-12/+0
2019-02-13review failures in heap, slice, vecRalf Jung-0/+12
2019-02-09Rollup merge of #58275 - RalfJung:miri-test-libcore, r=Mark-SimulacrumMazdak Farrokhzad-0/+2
libcore, liballoc: disable tests in Miri I am going to run the libcore and liballoc unit test suites in Miri. Not all tests pass. This PR disables a whole bunch of tests when running in Miri, to get us to a baseline from which I can investigate failures. Cc @SimonSapin @alexcrichton
2019-02-07disable tests in MiriRalf Jung-0/+2
2019-02-03liballoc: revert nested imports style changes.Mazdak Farrokhzad-7/+5
2019-02-02liballoc: elide some lifetimes.Mazdak Farrokhzad-1/+1
2019-02-02liballoc: adjust abolute imports + more import fixes.Mazdak Farrokhzad-1/+1
2019-02-02liballoc: refactor & fix some imports.Mazdak Farrokhzad-5/+7
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-11Test capacity of ZST vectorKonrad Borowski-0/+5
Initially, #50233 accidentally changed the capacity of empty ZST. This was pointed out during code review. This commit adds a test to prevent capacity of ZST vectors from accidentally changing to prevent that from happening again.
2018-04-12Remove the now-unit-struct AllocErr field inside CollectionAllocErrSimon Sapin-8/+8
2018-04-03Remove all unstable placement featuresAidan Hobson Sayers-19/+1
Closes #22181, #27779
2018-03-15setting ABORTING_MALLOC for asmjs backendsnf-6/+1
2018-03-14try_reserve: disabling tests for asmjs, blocked by #48968snf-1/+6
2018-03-14implementing fallible allocation API (try_reserve) for Vec, String and HashMapsnf-1/+208
2017-11-03Remove unused AsciiExt imports and fix tests related to ascii methodsLukas Kalbertodt-3/+0
Many AsciiExt imports have become useless thanks to the inherent ascii methods added in the last commits. These were removed. In some places, I fully specified the ascii method being called to enforce usage of the AsciiExt trait. Note that some imports are not removed but tagged with a `#[cfg(stage0)]` attribute. This is necessary, because certain ascii methods are not yet available in stage0. All those imports will be removed later. Additionally, failing tests were fixed. The test suite should exit successfully now.
2017-09-22Add support for `..=` syntaxAlex Burka-14/+14
Add ..= to the parser Add ..= to libproc_macro Add ..= to ICH Highlight ..= in rustdoc Update impl Debug for RangeInclusive to ..= Replace `...` to `..=` in range docs Make the dotdoteq warning point to the ... Add warning for ... in expressions Updated more tests to the ..= syntax Updated even more tests to the ..= syntax Updated the inclusive_range entry in unstable book
2017-07-19Add Vec::drain_filterAlexis Beingessner-0/+167
2017-07-03Document unintuitive argument order for Vec::dedup_by relationAnders Kaseorg-0/+5
When trying to use dedup_by to merge some auxiliary information from removed elements into kept elements, I was surprised to observe that vec.dedup_by(same_bucket) calls same_bucket(a, b) where b appears before a in the vector, and discards a when true is returned. This argument order is probably a bug, but since it has already been stabilized, I guess we should document it as a feature and move on. (Vec::dedup also uses == with this unexpected argument order, but I figure that’s not important since == is expected to be symmetric with no side effects.) Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2017-06-13Merge crate `collections` into `alloc`Murarth-0/+798