Add a dedicated length-prefixing method to Hasher by scottmcm · Pull Request #94598 · rust-lang/rust (original) (raw)

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

scottmcm

@rustbot rustbot added the T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

label

Mar 4, 2022

@scottmcm scottmcm added the T-libs-api

Relevant to the library API team, which will review and decide on the PR/issue.

label

Mar 9, 2022

@rustbot rustbot removed the T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

label

Apr 7, 2022

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

May 3, 2022

@bors bors added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

labels

May 3, 2022

@bors bors added S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

May 6, 2022

compiler-errors added a commit to compiler-errors/rust that referenced this pull request

May 6, 2022

@compiler-errors

…errors

Put the incompatible_closure_captures lint messages in alphabetical order

Looks like they were in hash order before, which was causing me trouble in rust-lang#94598, so this PR sorts the errors by trait name.

@scottmcm

This accomplishes two main goals:

This does not change rustc-hash, since that's in an external crate, but that could potentially use it in future.

@scottmcm

We might want to change the default before stabilizing (or maybe even after), but for getting in the new unstable methods, leave it as-is for now. That way it won't break cargo and such.

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

labels

May 6, 2022

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

May 6, 2022

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request

May 6, 2022

@GuillaumeGomez

…errors

Put the incompatible_closure_captures lint messages in alphabetical order

Looks like they were in hash order before, which was causing me trouble in rust-lang#94598, so this PR sorts the errors by trait name.

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request

May 6, 2022

@GuillaumeGomez

…errors

Put the incompatible_closure_captures lint messages in alphabetical order

Looks like they were in hash order before, which was causing me trouble in rust-lang#94598, so this PR sorts the errors by trait name.

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request

May 6, 2022

@GuillaumeGomez

…errors

Put the incompatible_closure_captures lint messages in alphabetical order

Looks like they were in hash order before, which was causing me trouble in rust-lang#94598, so this PR sorts the errors by trait name.

@scottmcm scottmcm deleted the prefix-free-hasher-methods branch

May 7, 2022 21:57

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

May 8, 2022

@matthiaskrgr

…anieu

Further elaborate the lack of guarantees from Hasher

I realized that I got too excited in rust-lang#94598 by adding new methods, and forgot to do the documentation to really answer the core question in rust-lang#94026.

This PR just has that doc update.

r? @Amanieu

mzji