Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic in .extend() and from_iter on capacity exceeded #175

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

bluss
Copy link
Owner

@bluss bluss commented Mar 23, 2021

This regresses performance of the .extend(s) benchmark where s is a
slice; to compensate add a private extend_from_slice method that we can
use where possible (clone_from, try_from).

Fixes #163

This regresses performance of the .extend(s) benchmark where s is a
slice; to compensate add a private extend_from_slice method that we can
use where possible (clone_from, try_from).
@bluss
Copy link
Owner Author

bluss commented Mar 23, 2021

CI success on beta and nightly (stable will come when Rust 1.51 is released shortly).

@bluss bluss merged commit 63ecdeb into master Mar 23, 2021
@bluss bluss deleted the extend-panic-on-capacity-error branch March 23, 2021 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggested API change – extend/collect should panic when capacity overflows
1 participant