Too strict trait bound for Pin::map_unchecked(_mut) #67669
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Most methods on
Pin
useT: ?Sized
to allow the underlying pointer to be dynamically sized. However bothPin::map_unchecked_mut
andPin::map_unchecked
have another generic parameterU
(the type to map to), which does not contain such (loosening of) trait bound. Is it intentional forU
to beSized
, or is this an oversight? In other words would a change to allowU: ?Sized
for the above mentioned methods be accepted?The text was updated successfully, but these errors were encountered: