-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Vec::extend_from_slice documentation outdated? #49228
Copy link
Copy link
Closed
Labels
A-collectionsArea: `std::collections`Area: `std::collections`C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-collectionsArea: `std::collections`Area: `std::collections`C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The documentation of
Vec::extend_from_slicesays:But its implementation is just delegated to
SpecExtend, so the doc may be misleading to use a less-ergonomic way that is going to be deprecated. Or, is there sill performance gains by usingextend_from_slicein some circumstances?rust/src/liballoc/vec.rs
Lines 1343 to 1345 in c19264f