-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Add impl const for Clone #143628
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
base: master
Are you sure you want to change the base?
Add impl const for Clone #143628
Conversation
rustbot has assigned @Mark-Simulacrum. Use |
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 fine, though it doesn't fix other things like (T,): [const] Clone
.
It would be nice if you added tests for this, either in tests/ui/traits/const-traits
or as a library test.
@rustbot author r? compiler-errors |
Reminder, once the PR becomes ready for a review, use |
There is a problem that I'm not sure is a bug, which locks the constifying of other impls. If I add
even though I add
I think the interplay of const stability and |
@rustbot ready |
badee77
to
b094209
Compare
@rustbot ready |
I've added some more impls |
This comment has been minimized.
This comment has been minimized.
6161a90
to
2eb86a4
Compare
Couldn't find the |
rebased on master for the new syntax |
As I mentioned in the other PR, could you limit the scope of this? Specifically, I'd like to just see us constifying a few things at a time. Other constifications for more library-specific types should probably have a library reviewer instead and be done on a per-type basis. |
@rustbot author |
Can you be a bit more specific so we're on the same page? |
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
@rustbot ready I've dropped the impls I mentioned in previous comment |
#142757