Fix overflow when converting ZST Vec to VecDeque
```rust
let v = vec![(); 100];
let queue = VecDeque::from(v);
println!("{:?}", queue);
```
This code will currently panic with a capacity overflow.
This PR resolves this issue and makes the code run fine.
Resolves #78532
|
||
|---|---|---|
| .. | ||
| btree | ||
| linked_list | ||
| vec_deque | ||
| binary_heap.rs | ||
| linked_list.rs | ||
| mod.rs | ||