mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
21cd762cd1
Replace the hacky macro with a generic function and a new `FlatMapInPlaceVec` trait. More verbose but more readable and typical. LLM disclosure: I asked Claude Code to critique this file and it suggested the generic function + trait idea. I implemented the idea entirely by hand.