about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/enum-option.js
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2022-03-04 00:17:26 -0800
committerScott McMurray <scottmcm@users.noreply.github.com>2022-05-06 00:03:38 -0700
commit98054377ee13956e6134b13aa31be01d9cd5a6af (patch)
treec08f6fb1a70c834ba46216f550f0ebb69a57b46b /tests/rustdoc-js-std/enum-option.js
parent086bf7a8ff3550ff1f4c8e78d8b3a7804fdbbb36 (diff)
downloadrust-98054377ee13956e6134b13aa31be01d9cd5a6af.tar.gz
rust-98054377ee13956e6134b13aa31be01d9cd5a6af.zip
Add a dedicated length-prefixing method to `Hasher`
This accomplishes two main goals:
- Make it clear who is responsible for prefix-freedom, including how they should do it
- Make it feasible for a `Hasher` that *doesn't* care about Hash-DoS resistance to get better performance by not hashing lengths

This does not change rustc-hash, since that's in an external crate, but that could potentially use it in future.
Diffstat (limited to 'tests/rustdoc-js-std/enum-option.js')
0 files changed, 0 insertions, 0 deletions