8000 Too strict trait bound for Pin::map_unchecked(_mut) · Issue #67669 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content
Too strict trait bound for Pin::map_unchecked(_mut) #67669
@Thomasdezeeuw

Description

@Thomasdezeeuw

Most methods on Pin use T: ?Sized to allow the underlying pointer to be dynamically sized. However both Pin::map_unchecked_mut and Pin::map_unchecked have another generic parameter U (the type to map to), which does not contain such (loosening of) trait bound. Is it intentional for U to be Sized, or is this an oversight? In other words would a change to allow U: ?Sized for the above mentioned methods be accepted?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0