mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
2e9ed6fb93
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