]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #80400 - adlerd:hashclone, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Sun, 27 Dec 2020 04:14:20 +0000 (04:14 +0000)
committerbors <bors@rust-lang.org>
Sun, 27 Dec 2020 04:14:20 +0000 (04:14 +0000)
Use `clone_from` from `hashbrown::{HashMap,HashSet}`.

This change updates the `std` hash collections to use `hashbrown`'s `clone_from`, which was itself added in #70052. Deriving `Clone` does not add a `clone_from` impl and uses the trait default, which calls `clone`.

Fixes #28481


Trivial merge