-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
vector improvements #17920
vector improvements #17920
Conversation
LGTM |
The changes look good to me modulo wanting to check with process with adding public APIs. The pull request title and description are a bit vague, which (I believe) means that the bors commit will be equally useless. I edited to make them more accurate. Feel free to change it again. |
r=me with |
Would it be possible to have |
@alexcrichton: Yes, but the |
From a stability POV I think it would be better to leave the trait in the prelude and marked experimental when marking the method as unstable/stable, so it could become an inherent method on |
Sure, sounds reasonable. In that case the import of |
@alexcrichton: The |
Ah ok, seems fine |
Introduce conversions between `Box<[T]>` and `Vec<T>` and use it to reimplement the `vec![]` macro for efficiency.
feat: Create an assist to convert closure to freestanding fn The assist converts all captures to parameters. Closes rust-lang#17920. This was more work than I though, since it has to handle a bunch of edge cases... Based on rust-lang#17941. Needs to merge it first.
Introduce conversions between
Box<[T]>
andVec<T>
and use it to reimplement thevec![]
macro for efficiency.