rust/library/core
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
..
benches Write char::DebugEscape sequences using write_str 2024-05-20 10:04:44 +02:00
src Rollup merge of #128170 - saethlin:clone-fn, r=compiler-errors 2024-07-26 02:20:31 -04:00
tests CStr: derive PartialEq, Eq; add test for Ord 2024-07-25 14:18:40 +03:00
Cargo.toml Cleanup bootstrap check-cfg 2024-06-27 11:30:03 +02:00