1
Fork 0

Avoid zero-sized allocs in ThinBox if T and H are both ZSTs.

This commit is contained in:
Thom Chiovoloni 2022-05-02 01:45:21 -07:00
parent 764b8615e9
commit fc109bb6c6
No known key found for this signature in database
GPG key ID: E2EFD4309E11C8A8
3 changed files with 277 additions and 18 deletions

View file

@ -42,6 +42,9 @@
#![feature(panic_update_hook)]
#![feature(slice_flatten)]
#![feature(thin_box)]
#![feature(bench_black_box)]
#![feature(strict_provenance)]
#![feature(once_cell)]
use std::collections::hash_map::DefaultHasher;
use std::hash::{Hash, Hasher};