rust/library/alloc/tests
bors eb95acea8a Auto merge of #71780 - jcotton42:string_remove_matches, r=joshtriplett
Implement String::remove_matches

Closes #50206.

I lifted the function help from `@frewsxcv's` original PR (#50015), hope they don't mind.

I'm also wondering whether it would be useful for `remove_matches` to collect up the removed substrings into a `Vec` and return them, right now they're just overwritten by the copy and lost.
2021-03-19 00:47:37 +00:00
..
arc.rs
binary_heap.rs in-place collect for Vec. Box<[]> and BinaryHeap IntoIter and some adapters 2020-09-03 20:59:03 +02:00
borrow.rs Move various ui const tests to library 2020-09-04 02:35:27 +02:00
boxed.rs review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
btree_set_hash.rs Move btree unit test to their native, privileged location 2020-08-14 17:54:09 +02:00
cow_str.rs
fmt.rs review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
heap.rs Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01:00
lib.rs Auto merge of #71780 - jcotton42:string_remove_matches, r=joshtriplett 2021-03-19 00:47:37 +00:00
linked_list.rs
rc.rs
slice.rs Update the bootstrap compiler 2021-02-20 17:19:30 -05:00
str.rs break formatting so rustfmt is happy 2020-12-02 14:09:36 +01:00
string.rs Implement String::remove_matches 2021-03-05 11:27:58 -05:00
vec.rs Vec::dedup optimization - add benches 2021-03-16 14:41:26 +01:00
vec_deque.rs replace assert! with assert_eq! 2020-12-13 10:21:24 +01:00