about summary refs log tree commit diff
path: root/src/test/ui/inference/inference-variable-behind-raw-pointer.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-25 06:47:30 +0000
committerbors <bors@rust-lang.org>2021-06-25 06:47:30 +0000
commit50e0cc59ffcacda5b48f4edb95e5a5c353624fb0 (patch)
treee439eaa42d3072e2b5882ca004fb696aa8742583 /src/test/ui/inference/inference-variable-behind-raw-pointer.rs
parent50a908121620edbef02d124e8d7d94943c50d4a1 (diff)
parent579d19bc6ac91548e8b256656ca1d7fbceb53197 (diff)
downloadrust-50e0cc59ffcacda5b48f4edb95e5a5c353624fb0.tar.gz
rust-50e0cc59ffcacda5b48f4edb95e5a5c353624fb0.zip
Auto merge of #86151 - scottmcm:simple-hash-of, r=joshtriplett
Add `BuildHasher::hash_one` as unstable

Inspired by https://github.com/rust-lang/rust/pull/86140/files#diff-246941135168fbc44fce120385ee9c3156e08a1c3e2697985b56dcb8d728eedeR2416, where I wanted to write a quick test for a `Hash` implementation and it took more of a dance than I'd hoped.

It looks like this would be handy in hashtable implementations, too -- a quick look at hashbrown found two places where it needs to do the same dance:
https://github.com/rust-lang/hashbrown/blob/6302512a8a514fe5bd442464ebcd78139c82e1e2/src/map.rs#L247-L270

I wanted to get a "seems plausible" from a libs member before making a tracking issue, so random-sampling the intersection of highfive and governance gave me...
r? `@joshtriplett`

(As always, bikeshed away!  And let me know if I missed something obvious again that I should have used instead.)
Diffstat (limited to 'src/test/ui/inference/inference-variable-behind-raw-pointer.rs')
0 files changed, 0 insertions, 0 deletions