mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
eb95acea8a
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.