about summary refs log tree commit diff
path: root/src/liballoc/tests/string.rs
AgeCommit message (Collapse)AuthorLines
2020-04-09Disable try_reserve tests on AndroidAmanieu d'Antras-0/+2
2020-04-05Stop importing integer modules in liballocLinus Färnstrand-1/+0
2020-03-24must_use on split_offKornel-2/+2
#70194
2020-02-02Derive Clone + PartialEq + Eq for std::string::FromUtf8Errorkennytm-0/+4
2019-12-22Format the worldMark Rousskov-69/+119
2019-12-07liballoc: ignore tests in Miri instead of removing them entirelyRalf Jung-2/+2
2019-08-16Add the Layout of the failed allocation to TryReserveError::AllocErrorSimon Sapin-6/+6
… and add a separately-unstable field to force non-exhaustive matching (`#[non_exhaustive]` is no implemented yet on enum variants) so that we have the option to later expose the allocator’s error value. CC https://github.com/rust-lang/wg-allocators/issues/23
2019-08-16Rename CollectionAllocError to TryReserveErrorSimon Sapin-1/+1
2019-04-20Deny rust_2018_idioms in liballoc testsPhilipp Hansch-2/+2
2019-03-10we can now skip should_panic tests with the libtest harnessRalf Jung-9/+0
2019-02-13review failures in btree, stringRalf Jung-2/+11
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-6/+4
2019-02-02liballoc: adjust abolute imports + more import fixes.Mazdak Farrokhzad-2/+2
2019-02-02liballoc: refactor & fix some imports.Mazdak Farrokhzad-4/+6
2018-12-25Remove licensesMark Rousskov-10/+0
2018-04-12Remove the now-unit-struct AllocErr field inside CollectionAllocErrSimon Sapin-6/+6
2018-04-12Reexport from core::unicode::char in core::char rather than vice versaSimon Sapin-1/+1
2018-04-12Deprecate the std_unicode crateSimon Sapin-1/+1
2018-04-01Stabilize String::replace_rangeThayne McCombs-15/+15
Fixes #44643
2018-03-15setting ABORTING_MALLOC for asmjs backendsnf-5/+0
2018-03-14try_reserve: disabling tests for asmjs, blocked by #48968snf-0/+5
2018-03-14implementing fallible allocation API (try_reserve) for Vec, String and HashMapsnf-0/+163
2017-09-22Add support for `..=` syntaxAlex Burka-3/+3
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-08-26Remove Splice struct return value from String::spliceMatt Ickstadt-17/+5
2017-08-14Add method `String::retain`Murarth-0/+20
Behaves like `Vec::retain`, accepting a predicate `FnMut(char) -> bool` and reducing the string to only characters for which the predicate returns `true`.
2017-06-13Merge crate `collections` into `alloc`Murarth-0/+498