]> git.lizzy.rs Git - rust.git/commit
Auto merge of #94276 - scottmcm:primitive-clone, r=oli-obk
authorbors <bors@rust-lang.org>
Fri, 11 Mar 2022 01:51:49 +0000 (01:51 +0000)
committerbors <bors@rust-lang.org>
Fri, 11 Mar 2022 01:51:49 +0000 (01:51 +0000)
commitc5a43b8d3917d15b30b7d99021540cf7831f4182
tree4c1a78d88d7cdd5627c187409d50de40c52d8553
parent352e621368c31d7b4a6362e081586cdb931ba020
parent705b8807d531348d05ed3e941b3af695abc24f85
Auto merge of #94276 - scottmcm:primitive-clone, r=oli-obk

mir-opt: Replace clone on primitives with copy

We can't do it for everything, but it would be nice to at least stop making calls to clone methods in debug from things like derived-clones.

r? `@ghost`
compiler/rustc_middle/src/ty/sty.rs