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

Add vec::shrink_to_fit #6900

Closed
emberian opened this issue Jun 2, 2013 · 1 comment
Closed

Add vec::shrink_to_fit #6900

emberian opened this issue Jun 2, 2013 · 1 comment

Comments

@emberian
Copy link
Member

emberian commented Jun 2, 2013

Similar to http://en.cppreference.com/w/cpp/container/vector/shrink_to_fit. I'm not enamored with the name, but there needs to be a way to realloc a vec (without necessarily copying) when you overallocate (using with_capacity).

@thestinger
Copy link
Contributor

I actually have #4960 open about this already.

flip1995 pushed a commit to flip1995/rust that referenced this issue Apr 22, 2021
…lip1995

Fix `explicit_into_iter_loop`

fixes: rust-lang#6900

changelog: Only lint when `into_iter` is an implementation of `IntoIterator`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants