-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Add impl const for Clone and derive_const for cmp and Default traits #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
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use |
compiler-errors
left a comment
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
|
r? oli-obk |
|
|
This comment has been minimized.
This comment has been minimized.
|
@rustbot ready there are still some questions in the discussions I left open |
|
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. |
|
Apparently most of this was already done in #146976 |
Add const cloning of slices and tests As discussed in rust-lang#143628 (comment), splitting off slice cloning as a separate PR. r? @tgross35
Add const cloning of slices and tests As discussed in rust-lang#143628 (comment), splitting off slice cloning as a separate PR. r? @tgross35
Add const cloning of slices and tests As discussed in rust-lang#143628 (comment), splitting off slice cloning as a separate PR. r? @tgross35
Rollup merge of #147938 - const-clone-slice, r=tgross35 Add const cloning of slices and tests As discussed in #143628 (comment), splitting off slice cloning as a separate PR. r? @tgross35
#142757