Skip to content

add Copy, Clone and Drop traits support #385

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

Merged
merged 6 commits into from
Apr 14, 2020

Conversation

basil-cow
Copy link
Contributor

So I raised some concerns about this implementation in this zulip thread, how grounded are they?

cc #363

Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nice! I left some requests for comments, but overall, very cool. I enjoyed the dropck conditions. =)


match db.trait_datum(impl_datum.trait_id()).well_known? {
// You can't add a manual implementation of Sized
WellKnownTrait::SizedTrait => Some(GoalData::CannotProve(()).intern(interner)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like it will ultimately have to change, since the resulting UX would be terrible, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By UX you mean writing tests and using repl?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CannotProve is not the best way to report errors, but it I guess we'll change that when we add proper error reporting

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By UX I mean "when rustc runs this code" -- the vision eventually is that rustc will run these WF goals and report errors from the results. But I agree we can address it later.

Copy link
Member

@jackh726 jackh726 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was going through this yesterday but got busy with other things. Did have this comment though.

@nikomatsakis nikomatsakis merged commit 4866423 into rust-lang:master Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants