-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
vec::IntoIter is now invariant #35721
Copy link
Copy link
Closed
Labels
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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Metadata
Metadata
Assignees
Labels
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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
#35447 replaced a
*const Tby a*mut TinIntoIter<T>, which changedIntoIterfrom being covariant to being invariant. This breaks crates likevec_mapwhich relied onIntoIterbeing invariant, e.g. https://travis-ci.org/asajeffrey/presort/jobs/152720189#L208 has error:cc @alexcrichton @frewsxcv @apasel422