Skip to content

[try_]pin_init! should check that the initialized struct is !Unpin #63

Description

@BennoLossin

[try_]pin_init! should check that the initialized struct is !Unpin:

  • if it is Unpin, [try_]init! can be used instead (since all structurally pinned values must then also be Unpin)
  • it can catch people forgetting PhantomPinned in their structs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions