Skip to content

Commit 92c0ad7

Browse files
saethlinscottmcm
andcommitted
Let InstCombine remove Clone shims inside Clone shims
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
1 parent 2fff48d commit 92c0ad7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

rtstartup/rsbegin.rs

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ trait Copy {}
2929
#[lang = "freeze"]
3030
auto trait Freeze {}
3131

32+
impl<T: ?Sized> Copy for *mut T {}
33+
3234
#[lang = "drop_in_place"]
3335
#[inline]
3436
#[allow(unconditional_recursion)]

rtstartup/rsend.rs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ trait Copy {}
1717
#[lang = "freeze"]
1818
auto trait Freeze {}
1919

20+
impl<T: ?Sized> Copy for *mut T {}
21+
2022
#[lang = "drop_in_place"]
2123
#[inline]
2224
#[allow(unconditional_recursion)]

0 commit comments

Comments
 (0)