Let InstCombine remove Clone shims inside Clone shims · patricklam/verify-rust-std@92c0ad7 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 92c0ad7
and
committed
Let InstCombine remove Clone shims inside Clone shims
Co-authored-by: scottmcm scottmcm@users.noreply.github.com
File tree
2 files changed
lines changed
2 files changed
lines changed
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -29,6 +29,8 @@ trait Copy {} | ||
29 | 29 | #[lang = "freeze"] |
30 | 30 | auto trait Freeze {} |
31 | 31 | |
32 | +impl<T: ?Sized> Copy for *mut T {} | |
33 | + | |
32 | 34 | #[lang = "drop_in_place"] |
33 | 35 | #[inline] |
34 | 36 | #[allow(unconditional_recursion)] |
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -17,6 +17,8 @@ trait Copy {} | ||
17 | 17 | #[lang = "freeze"] |
18 | 18 | auto trait Freeze {} |
19 | 19 | |
20 | +impl<T: ?Sized> Copy for *mut T {} | |
21 | + | |
20 | 22 | #[lang = "drop_in_place"] |
21 | 23 | #[inline] |
22 | 24 | #[allow(unconditional_recursion)] |