mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
c4f8fd2bf5
Implement Clone::clone_from for LinkedList See #28481. This represents a substantial speedup when the list sizes are comparable, and shouldn't ever be significantly worse. Technically split_off is doing an unnecessary search, but the code is hopefully cleaner as a result. I'm happy to rework anything that needs to be changed as well!