constify comparison traits on slices - #147790
Conversation
|
|
This comment has been minimized.
This comment has been minimized.
|
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. |
|
@bors r+ rollup |
constify comparison traits on slices r? oli-obk Tracking issue rust-lang#143800
Rollup of 6 pull requests Successful merges: - #147406 (Remove needs-asm-support directive in tests with explicit targets) - #147790 (constify comparison traits on slices) - #148056 (refactor(rustdoc): Remove redundant langstr checks) - #148065 (compiletest: Add concrete examples for some config/test path fields) - #148072 (Fix compiling `CondVar::wait_timeout` on 32-bit Apple platforms) - #148073 (test(frontmatter): Rename tests to make coverage more obvious) r? `@ghost` `@rustbot` modify labels: rollup
|
Changing slices PartialEq implementation breaks codegen tests, I've encountered this in the past |
|
☔ The latest upstream changes (presumably #150945) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@npmccallum Hi, ping from triage team. This PR has been inactive for a while. Are there any updates on this? Thanks. |
|
Picking this back up after the triage ping — sorry for the delay. Before I put work into it, I'd like to check whether it's still wanted. State of the PR: it was But the r+ predates #155816, which libs has now signed off on. This PR is completeness-driven rather than driven by a need inside rust-lang, so I think it plausibly falls on the "decline for now" side of those guidelines. I've just closed #146097 on that basis. @oli-obk @tgross35 — does the approval still stand under the new policy? If yes I'll rebase and sort out the codegen test; if not I'll close this too, no hard feelings. |
|
From the policy's perspective, the main issue with this PR is that it introduces new const hacks, although I believe that since const closures are now a thing those hacks should no longer be required. Since comparisons between slices are useful in a const context and most of this is just adding a stability marker, it would be fine to merge. r? clarfonthey Would be fine accepting this if you want to rebase & remove the hacks, also fine if you want to open a new PR instead. I would recommend just doing r? libs for new constifications since if it gets to the level of complexity where wg-const-traits needs to intervene it probably is too complicated to accept. |
|
I… 🤦🏻 Technically did ask for a second reviewer from libs, didn't I. Unassigning Mark since that was a mistake. |
r? oli-obk
Tracking issue #143800