Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Clone only for Copy types. #44196

Closed
wants to merge 2 commits into from

Conversation

scalexm
Copy link
Member

@scalexm scalexm commented Aug 30, 2017

Fixes ICEs encountered in e.g. #28229, no less, no more. I removed the old code as it will still be available in the commit history (or in my own branch).

cc @arielb1 @eddyb

r? @nikomatsakis

@eddyb
Copy link
Member

eddyb commented Aug 31, 2017

Also, did it reach beta? It'd have to be reverted there too if it did.
EDIT: yes it has.

@eddyb eddyb added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Aug 31, 2017
@nikomatsakis
Copy link
Contributor

Well, the PR looks good to me. I'd be ok with landing this (and perhaps reverting it) pending resolution of rust-lang/rfcs#2132 and rust-lang/rfcs#2133. That said, the trait selection code looks overall less clean to me, so that's a downside (although not having to handle Clone in MIR shims is of course nice-ish).

@bors
Copy link
Contributor

bors commented Sep 1, 2017

☔ The latest upstream changes (presumably #44154) made this pull request unmergeable. Please resolve the merge conflicts.

@shepmaster shepmaster added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Sep 1, 2017
@nikomatsakis
Copy link
Contributor

I think we can close this due to the RFCs being in FCP.

@alexcrichton
Copy link
Member

Removing beta nomination as this is closed

@alexcrichton alexcrichton removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Sep 12, 2017
@scalexm scalexm deleted the copy-clone branch October 22, 2018 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants