Add impl const for Clone and derive_const for cmp and Default traits#143628
Add impl const for Clone and derive_const for cmp and Default traits#143628Randl wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use |
compiler-errors
left a comment
There was a problem hiding this comment.
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