Closed alecmocatta closed 3 years ago
fn main() { let x: slab::Slab<()> = std::iter::once((1, ())).collect(); }
This gives a slab with a corrupt vacant list. Once corrupted, I was hitting this panic https://github.com/tokio-rs/slab/blob/v0.4.3/src/lib.rs#L942
Patching vacant_list_broken = true; is a workaround.
vacant_list_broken = true;
Fixed in v0.4.4.
This gives a slab with a corrupt vacant list. Once corrupted, I was hitting this panic https://github.com/tokio-rs/slab/blob/v0.4.3/src/lib.rs#L942
Patching
vacant_list_broken = true;
is a workaround.