Ralf Jung
eb1de2ff39
liballoc: more compact way to adjust test sizes for Miri
2020-04-23 20:05:01 +02:00
Amanieu d'Antras
7060a9e683
Disable try_reserve tests on Android
2020-04-09 15:55:12 +01:00
Linus Färnstrand
fff4f08398
Stop importing integer modules in liballoc
2020-04-05 11:22:01 +02:00
Jonas Schievink
e5987a062f
Format
2020-01-19 20:50:00 +01:00
Jonas Schievink
b04ca13873
Fix leak in VecDeque::drain when drop panics
2020-01-19 20:24:08 +01:00
Jonas Schievink
3e5eb2634c
Fix VecDeque::truncate leak on drop panic
2020-01-19 20:23:07 +01:00
Jonas Schievink
189ccf20a2
VecDeque: drop remaining items on destructor panic
2019-12-11 19:38:45 +01:00
Ralf Jung
ca2ffe3a80
liballoc: ignore tests in Miri instead of removing them entirely
2019-12-07 12:42:19 +01:00
David Tolnay
1c4d453969
Format liballoc with rustfmt
2019-11-29 20:25:07 -08:00
Simon Sapin
59a340963f
Add the Layout of the failed allocation to TryReserveError::AllocError
...
… 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-16 18:08:37 +02:00
Simon Sapin
36b18a1901
Rename CollectionAllocError to TryReserveError
2019-08-16 18:08:06 +02:00
Vadim Petrochenkov
62ec2cb7ac
Remove some more cfg(test)s
2019-08-02 02:40:01 +03:00
Ralf Jung
4888b1fb99
we can now skip should_panic tests with the libtest harness
2019-03-10 17:47:42 +01:00
Mazdak Farrokhzad
70cc6c980c
Rollup merge of #58064 - llogiq:vec-deque-try-rfold, r=scottmcm
...
override `VecDeque::try_rfold`, also update iterator
This keeps the slice based iteration and updates the iterator state after each slice. It also uses a loop to reduce the amount of code.
This uses unsafe code, so some thorough review would be appreciated. Cc @RalfJung
2019-02-22 14:57:58 +01:00
Andre Bogus
64c915e3ad
override VecDeque::try_rfold, also update iterator
...
This keeps the slice based iteration and updates the iterator
state after each slice. It also uses a loop to reduce the amount
of code.
This uses unsafe code, so some thorough review would be
appreciated.
2019-02-18 22:30:51 +01:00
Ralf Jung
4c1a1c3830
review failures in btree, string
2019-02-13 18:21:13 +01:00
Ralf Jung
b17ca01077
review failures in binary_heap, str, vec_deque
2019-02-13 18:21:13 +01:00
Mazdak Farrokhzad
9708644530
Rollup merge of #58275 - RalfJung:miri-test-libcore, r=Mark-Simulacrum
...
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-09 00:16:04 +01:00
Ralf Jung
81613ad7cf
disable tests in Miri
2019-02-07 18:24:10 +01:00
Mazdak Farrokhzad
2396780cda
liballoc: revert nested imports style changes.
2019-02-03 08:27:44 +01:00
Mazdak Farrokhzad
e70c2fbd5c
liballoc: elide some lifetimes.
2019-02-02 12:23:15 +01:00
Mazdak Farrokhzad
748970dfa9
liballoc: apply uniform_paths.
2019-02-02 11:05:20 +01:00
Mazdak Farrokhzad
7693e3e666
liballoc: refactor & fix some imports.
2019-02-02 10:14:40 +01:00
Andre Bogus
b062b75559
override VecDeque's Iter::try_fold
2019-01-30 09:11:17 +01:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Scott McMurray
cbe9abb78c
Add more VecDeque::rotate_{left|right} tests
2018-12-19 00:53:48 -08:00
Corey Farwell
c025d61409
Replace usages of ..i + 1 ranges with ..=i.
2018-12-04 12:05:19 -08:00
Pazzaz
b063bd4616
Test VecDeque append not dropping twice
2018-08-15 19:42:07 +02:00
Pazzaz
9f1fdecb3c
Simplify vecdeque append test
2018-07-22 22:15:29 +02:00
Pazzaz
24bc854b8c
Non-naive implementation for VecDeque.append
2018-07-19 23:32:22 +02:00
Simon Sapin
93a9ad4897
Remove the now-unit-struct AllocErr field inside CollectionAllocErr
2018-04-12 22:53:13 +02:00
Aidan Hobson Sayers
9b5859aea1
Remove all unstable placement features
...
Closes #22181 , #27779
2018-04-03 11:02:34 +02:00
snf
9e64946bde
setting ABORTING_MALLOC for asmjs backend
2018-03-15 17:43:05 +00:00
snf
b08b5ae0ec
try_reserve: disabling tests for asmjs, blocked by #48968
2018-03-14 03:48:42 -07:00
snf
92bfcd2b19
implementing fallible allocation API (try_reserve) for Vec, String and HashMap
2018-03-14 03:48:42 -07:00
Scott McMurray
dcd332ed94
Delete deprecated & unstable range-specific step_by
...
Replacement: 41439
Deprecation: 42310 for 1.19
Fixes 41477
2017-07-01 19:18:02 -07:00
Murarth
eadda7665e
Merge crate collections into alloc
2017-06-13 23:37:34 -07:00