From: bors Date: Sun, 27 Dec 2020 04:14:20 +0000 (+0000) Subject: Auto merge of #80400 - adlerd:hashclone, r=Mark-Simulacrum X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=0f42d47bd5352028fe297f5e759b7e3763d55cbb;p=rust.git Auto merge of #80400 - adlerd:hashclone, r=Mark-Simulacrum 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 --- 0f42d47bd5352028fe297f5e759b7e3763d55cbb