diff options
author | Haibo Huang <hhb@google.com> | 2020-05-18 15:51:06 -0700 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2020-05-18 15:51:06 -0700 |
commit | 2960bb3286f62288b139b5251c4fae8af4b229da (patch) | |
tree | f05ba22a13d80ded5528edd1bf8a9e0aa5451a51 /CHANGELOG.md | |
parent | 6f3e9271b123f94f158b1f000c996a558351320f (diff) | |
download | pin-project-2960bb3286f62288b139b5251c4fae8af4b229da.tar.gz |
Upgrade rust/crates/pin-project to 0.4.17platform-tools-30.0.3platform-tools-30.0.2
Test: None
Change-Id: Ief1c86f13cbb3473c76f2435a0198c7e3efbd2cf
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f705c..ed7cfbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,32 @@ This project adheres to [Semantic Versioning](https://semver.org). ## [Unreleased] +## [0.4.17] - 2020-05-18 + +* [Allowed naming the projected types.][202] + + By passing an argument with the same name as the method to the attribute, you can name the projection type returned from the method: + + ```rust + use pin_project::pin_project; + use std::pin::Pin; + + #[pin_project(project = EnumProj)] + enum Enum<T> { + Variant(#[pin] T), + } + + fn func<T>(x: Pin<&mut Enum<T>>) { + match x.project() { + EnumProj::Variant(y) => { + let _: Pin<&mut T> = y; + } + } + } + ``` + +[202]: https://github.com/taiki-e/pin-project/pull/202 + ## [0.4.16] - 2020-05-11 * [Fixed an issue that users can call internal function generated by `#[pinned_drop]`.][223] @@ -411,7 +437,8 @@ See also [tracking issue for 0.4 release][21]. Initial release -[Unreleased]: https://github.com/taiki-e/pin-project/compare/v0.4.16...HEAD +[Unreleased]: https://github.com/taiki-e/pin-project/compare/v0.4.17...HEAD +[0.4.17]: https://github.com/taiki-e/pin-project/compare/v0.4.16...v0.4.17 [0.4.16]: https://github.com/taiki-e/pin-project/compare/v0.4.15...v0.4.16 [0.4.15]: https://github.com/taiki-e/pin-project/compare/v0.4.14...v0.4.15 [0.4.14]: https://github.com/taiki-e/pin-project/compare/v0.4.13...v0.4.14 |