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 shrink_to_fit method to vectors #4960

Closed
thestinger opened this issue Feb 15, 2013 · 2 comments
Closed

add shrink_to_fit method to vectors #4960

thestinger opened this issue Feb 15, 2013 · 2 comments
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@thestinger
Copy link
Contributor

This is useful for minimizing memory usage of a long-lived container after deletions, and was added to std::vector in C++11.

@thestinger
Copy link
Contributor Author

Triage visit, this is still unimplemented.

@thestinger
Copy link
Contributor Author

It's probably a bad idea to implement this for hash tables because it can significantly degrade search performance.

@thestinger thestinger removed their assignment Jun 16, 2014
bors added a commit to rust-lang-ci/rust that referenced this issue May 2, 2020
…=flip1995

New lint: pats_with_wild_match_arm

Wildcard use with other pattern in same match arm.

The wildcard covers other(s) pattern(s) as it will match anyway.

changelog: add new lint when multiple patterns (including wildcard) are used in a match arm.

Fixes rust-lang#4640.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

1 participant