-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Change the argument type of project method back to self: Pin<&mut Self>
#90
Conversation
@@ -19,8 +19,7 @@ fn project_stmt_expr_nightly() { | |||
|
|||
let mut baz = Baz::Variant1(1, 2); | |||
|
|||
let mut baz = Pin::new(&mut baz); | |||
let mut baz = baz.project(); | |||
let mut baz = Pin::new(&mut baz).project(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, this might be useful too.
@@ -295,30 +291,30 @@ fn lifetime_project() { | |||
|
|||
impl<T, U> Struct<T, U> { | |||
fn get_pin_mut<'a>(self: Pin<&'a mut Self>) -> Pin<&'a mut T> { | |||
self.project_into().pinned | |||
self.project().pinned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see this as a problem because I know both ways, but it would be easier to do all of this with a single method.
bors r+ |
90: Change the argument type of project method back to `self: Pin<&mut Self>` r=taiki-e a=taiki-e Closes #89 Co-authored-by: Taiki Endo <[email protected]>
Build failed
|
bors retry |
90: Change the argument type of project method back to `self: Pin<&mut Self>` r=taiki-e a=taiki-e Closes #89 Co-authored-by: Taiki Endo <[email protected]>
Build succeeded
|
101: Release 0.4.0-beta.1 r=taiki-e a=taiki-e Changes: * [Changed the argument type of project method back to `self: Pin<&mut Self>`.][90] * [Removed "project_attr" feature and always enable `#[project]` attribute.][94] * [Removed "renamed" feature.][100] * [`#[project]` attribute can now be used for `use` statements.][85] * [Added `project_ref` method and `#[project_ref]` attribute.][93] * [`#[pin_project]` attribute now determines the visibility of the projection type/method is based on the original type.][96] cc #21 [85]: #85 [90]: #90 [93]: #93 [94]: #94 [96]: #96 [100]: #100 Co-authored-by: Taiki Endo <[email protected]>
Closes #89