Skip to content

Constify KeyAndValue cmp methods - #161576

Open
Randl wants to merge 1 commit into
rust-lang:mainfrom
Randl:const_cmp_more
Open

Randl wants to merge 1 commit into
rust-lang:mainfrom
Randl:const_cmp_more

Conversation

@Randl

@Randl Randl commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 23, 2026
@rustbot rustbot added the T-libs Relevant to the library team, which will review and decide on the PR/issue. label Aug 23, 2026
@rustbot

rustbot commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

r? @nia-e

rustbot has assigned @nia-e.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 12 candidates
  • Random selection from JohnTitor, Mark-Simulacrum, clarfonthey, nia-e

@nia-e

nia-e commented Aug 23, 2026

Copy link
Copy Markdown
Member

Hi - what's the rationale for this constification? Seeing as we're ironing out the last details around const traits & impls, we're generally disinclined to accept new constifications unless there's use within std itself (see #155816)

@Randl

Randl commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

Iterator constification, specifically max_by_key would require that.

I'm extracting changes from the local branch that contains more or less minimal Iterator constification.

@nia-e

nia-e commented Aug 23, 2026

Copy link
Copy Markdown
Member

I think @fee1-dead might have relevant input here since I don't know the status of iterator constification stuff ^^

@tgross35

Copy link
Copy Markdown
Member

@rustbot blocked

We have enough in Iterator to test the language aspects like `for i in some_iter. We don't need to exhaustively constify iterator as a library feature in order to test that, so let's hold this off until the const traits RFC.

@rustbot rustbot added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-blocked Status: Blocked on something else such as an RFC or other implementation work. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants