-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Too strict trait bound for Pin::map_unchecked(_mut) #67669
Copy link
Copy link
Closed
Labels
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
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.
Most methods on
PinuseT: ?Sizedto allow the underlying pointer to be dynamically sized. However bothPin::map_unchecked_mutandPin::map_uncheckedhave another generic parameterU(the type to map to), which does not contain such (loosening of) trait bound. Is it intentional forUto beSized, or is this an oversight? In other words would a change to allowU: ?Sizedfor the above mentioned methods be accepted?