rust/library/core
bors 7510b0ca45 Auto merge of #85758 - petertodd:2021-revert-manuallydrop-clone-from, r=m-ou-se
Revert #85176 addition of `clone_from` for `ManuallyDrop`

Forwarding `clone_from` to the inner value changes the observable behavior, as previously the inner value would *not* be dropped by the default implementation.

Frankly, this is a super-niche case, so #85176 is welcome to argue the behavior should be otherwise! But if we overrride it, IMO documenting the behavior would be good.

Example: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=c5d0856686fa850c1d7ee16891014efb
2021-06-14 10:24:48 +00:00
..
benches move core::hint::black_box under its own feature gate 2021-04-25 11:08:12 +02:00
src Auto merge of #85758 - petertodd:2021-revert-manuallydrop-clone-from, r=m-ou-se 2021-06-14 10:24:48 +00:00
tests Auto merge of #85630 - gilescope:to_digit_speedup3, r=nagisa 2021-06-10 23:14:11 +00:00
Cargo.toml Auto merge of #82271 - Aaron1011:debug-refcell, r=m-ou-se 2021-03-23 04:49:47 +00:00