Like `replace(..., "")`, but doesn't result in any allocations. I started implementing this in https://github.com/rust-lang/rust/pull/50015 but got stuck, mainly because of limitations in the `Pattern` APIs. ```rust let mut s = String::from("Trees are not green, the sky is not blue."); s.remove_matches("not "); assert_eq!("Trees are green, the sky is blue.", s); ``` <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_ASSIGN_START --> This issue has been assigned to @jcotton42 via [this comment](https://github.com/rust-lang/rust/issues/50206#issuecomment-619595280). <!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"jcotton42"}$$TRIAGEBOT_ASSIGN_DATA_END --> <!-- TRIAGEBOT_ASSIGN_END --> <!-- TRIAGEBOT_END -->