about summary refs log tree commit diff
path: root/library/alloc/tests/vec_deque.rs
AgeCommit message (Collapse)AuthorLines
2023-03-27fix advance_by impl for vec_deque and add testsThe 8472-0/+23
2023-02-25Add test for VecDeque::append ZST capacity overflowpommicket-0/+14
2022-12-08Apply review feedback; Fix no_global_oom_handling buildScott McMurray-3/+13
2022-12-08Make `VecDeque::from_iter` O(1) from `vec(_deque)::IntoIter`Scott McMurray-0/+26
2022-11-20Update VecDeque implementationMarkus Everling-6/+7
2022-11-15`VecDeque::resize` should re-use the buffer in the passed-in elementScott McMurray-0/+8
Today it always copies it for *every* appended element, but one of those clones is avoidable.
2022-03-25Adjust tests for isize::MAX allocation always being checkedCAD97-109/+52
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-2/+2
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2022-01-09eplace usages of vec![].into_iter with [].into_iterLucas Kent-6/+6
2021-08-07Use assert_matches! instead of if let {} elseKornel-99/+92
2021-07-24Hide allocator details from TryReserveErrorKornel-31/+69
2021-04-15VecDeque: Add partition_point() #78021Vojtech Kral-0/+18
2020-12-13replace assert! with assert_eq!Justus K-1/+1
2020-12-13fix panic if converting ZST Vec to VecDequeJustus K-0/+7
2020-10-17Rebase conflictsAlexis Bourget-0/+30
2020-10-09liballoc: VecDeque: Add binary search functionsVojtech Kral-0/+39
2020-09-04Add tests for overflow in String / VecDeque operations using rangesTomasz Miąsko-0/+15
2020-07-27mv std libs to library/mark-0/+1646