Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for #[project(!Unpin)] #76

Merged
merged 3 commits into from
Aug 6, 2023

Conversation

matheus-consoli
Copy link
Contributor

This PR adds support to making types !Unpin.

Ex.:

pin_project! {
    #[project(!Unpin)]
    struct Foo<A, B> {
       #[pin]
       a: A,
       b: B,
    }
}

We also hide the documentation of the implementation that makes the type !Unpin, so it should not show in the rustdoc sidebar.

closes: #75

Copy link
Owner

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@taiki-e taiki-e merged commit eaafadc into taiki-e:main Aug 6, 2023
10 checks passed
@matheus-consoli matheus-consoli deleted the not-unpin branch August 6, 2023 02:55
@taiki-e
Copy link
Owner

taiki-e commented Aug 6, 2023

Published in 0.2.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support !Unpin option
2 participants