-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
docs for extend_from_slice say extend isnt specialized for slice yet #53185
Comments
@rust-lang/libs Are there plans to deprecate |
If I remember correctly, the plan is to start "publicly" taking advantage of specialization in the standard library (even if indirectly, such as by recommending |
Yes until specialization is stable we do not want to deprecate this method. |
Seems like this is blocked on specialization, so tagging with low priority. |
On the other hand, the documentation for |
Any news on this? Should I make a pull request depreciating the method or tweak the docs? |
Seems like it's still blocked on specialization stabilizing... |
But I can’t help but notice the function (in the alloc source) turns the slice to an iterator an passes it to extend() |
Yes, that's already been discussed. |
So the function exists only if specialisation would disappear for slice iterators in the future? |
Yes: #31844 It's also possible it will go the same route as const generics with a |
Okay. |
Current text is:
which explains the difference and does not suggest that extend is not specialized for slices yet. @bjorn3 can this be closed? |
Noticed an error in the docs of Vec::extend_from_slice:
extend is already specialized for slices
The text was updated successfully, but these errors were encountered: