Skip to content

stable hashing: Remove unused field and add documentation. - #60915

Merged
bors merged 2 commits into
rust-lang:masterfrom
michaelwoerister:hashstablestuff
May 21, 2019
Merged

stable hashing: Remove unused field and add documentation.#60915
bors merged 2 commits into
rust-lang:masterfrom
michaelwoerister:hashstablestuff

Conversation

@michaelwoerister

Copy link
Copy Markdown
Member

This PR removes the bytes_hashed field from StableHasher which in the past has been used for collecting some statistics but has gone unused for quite a while (months at least) now.

The PR also tries to document some requirements for HashStable implementations that haven't been written down explicitly anywhere.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @estebank

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 17, 2019

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// account. See #49300 for an example where violating this invariant has
/// account. See [#49300](https://github.com/rust-lang/rust/issues/49300) for an example where violating this invariant has

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@estebank

Copy link
Copy Markdown
Contributor

@michaelwoerister

Copy link
Copy Markdown
MemberAuthor

I updated the link.
@bors r=estebank rollup

@bors

bors commented May 20, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit a79c06a has been approved by estebank

@borsbors 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 20, 2019
Centril added a commit to Centril/rust that referenced this pull request May 20, 2019
…=estebank
stable hashing: Remove unused field and add documentation.
This PR removes the `bytes_hashed` field from `StableHasher` which in the past has been used for collecting some statistics but has gone unused for quite a while (months at least) now.
The PR also tries to document some requirements for `HashStable` implementations that haven't been written down explicitly anywhere.
@CentrilCentril mentioned this pull request May 20, 2019
bors added a commit that referenced this pull request May 20, 2019
Rollup of 11 pull requests
Successful merges:
- #60383 (Fix position source code files toggle)
- #60453 (Fall back to `/dev/urandom` on `EPERM` for `getrandom`)
- #60487 (Fix search sidebar width when no crate select is present)
- #60511 (Fix intra-doc link resolution failure on re-exporting libstd)
- #60823 (Fix incremental compilation of cdylib emitting spurious unused_attributes lint)
- #60915 (stable hashing: Remove unused field and add documentation.)
- #60942 (Misc changes to rustc_metadata)
- #60952 (Document BinaryHeap time complexity)
- #60959 (rustc: Improve type size assertions)
- #60972 (remove confusing remarks about mixed volatile and non-volatile accesses)
- #60983 (Set -funwind-tables and -fno-exceptions unconditionally for LLVM's libunwind)
Failed merges:
r? @ghost
@bors

bors commented May 21, 2019

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #60986) made this pull request unmergeable. Please resolve the merge conflicts.

@borsbors 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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 21, 2019
@bors
bors merged commit a79c06a into rust-lang:masterMay 21, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-authorStatus: This is awaiting some action (such as code changes or more information) from the author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@michaelwoerister@rust-highfive@estebank@bors@fbstj