-
Notifications
You must be signed in to change notification settings - Fork 183
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
Conversation
There was a problem hiding this 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)), |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
So I raised some concerns about this implementation in this zulip thread, how grounded are they?
cc #363