rust/compiler/rustc_hir
Trevor Gross 97eade42f7
Rollup merge of #128170 - saethlin:clone-fn, r=compiler-errors
Make Clone::clone a lang item

I want to absorb all the logic for picking whether an Instance is LocalCopy or GloballyShared into one place. As part of this, I wanted to identify Clone shims inside `cross_crate_inlinable` and found that rather tricky. `@compiler-errors` suggested that I add a lang item for `Clone::clone` because that would produce other cleanups in the compiler.

That sounds good to me, but I have looked and I've only been able to find one.

r? compiler-errors
2024-07-26 02:20:31 -04:00
..
src Rollup merge of #128170 - saethlin:clone-fn, r=compiler-errors 2024-07-26 02:20:31 -04:00
Cargo.toml Remove unnecessary dependencies. 2023-11-26 08:38:42 +11:00