rust/src/liballoc/tests
bors 892cb143e5 Auto merge of #67290 - jonas-schievink:leak-audit, r=KodrAus
Audit liballoc for leaks in `Drop` impls when user destructor panics

Inspired by https://github.com/rust-lang/rust/pull/67243 and https://github.com/rust-lang/rust/pull/67235, this audits and hopefully fixes the remaining `Drop` impls in liballoc for resource leaks in the presence of panics in destructors called by the affected `Drop` impl.

This does not touch `Hash{Map,Set}` since they live in hashbrown. They have similar issues though.

r? @KodrAus
2020-02-26 12:48:53 +00:00
..
btree Auto merge of #67290 - jonas-schievink:leak-audit, r=KodrAus 2020-02-26 12:48:53 +00:00
arc.rs Use drop instead of the toilet closure |_| () 2020-01-02 08:56:12 +00:00
binary_heap.rs Fix binary_heap::DrainSorted drop leak on panics 2020-01-19 20:23:07 +01:00
boxed.rs Format liballoc with rustfmt 2019-11-29 20:25:07 -08:00
cow_str.rs Small Cow improvements 2019-12-11 21:01:33 +01:00
fmt.rs Remove licenses 2018-12-25 21:08:33 -07:00
heap.rs Rename Alloc to AllocRef 2020-01-27 21:39:51 +01:00
lib.rs Implement split_inclusive for slice and str, an splitting iterator that includes the matched part in the iterated substrings as a terminator. 2020-02-09 23:48:52 +09:00
linked_list.rs Format 2020-01-19 20:50:00 +01:00
rc.rs Use drop instead of the toilet closure |_| () 2020-01-02 08:56:12 +00:00
slice.rs Don't return empty slice on last iteration with matched terminator. Test reverse iteration. 2020-02-09 23:49:44 +09:00
str.rs Don't return empty slice on last iteration with matched terminator. Test reverse iteration. 2020-02-09 23:49:44 +09:00
string.rs Derive Clone + PartialEq + Eq for std::string::FromUtf8Error 2020-02-02 02:29:28 +08:00
vec.rs Format 2020-01-19 20:50:00 +01:00
vec_deque.rs Format 2020-01-19 20:50:00 +01:00