From f6531475900a7eb56355c1bd9cf6015d13193997 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 1 Sep 2019 10:30:11 +0900 Subject: [PATCH] Release 0.4.0-alpha.6 --- CHANGELOG.md | 6 ++++++ Cargo.toml | 4 ++-- README.md | 4 ++-- pin-project-internal/Cargo.toml | 4 ++-- pin-project-internal/src/lib.rs | 4 ++-- pin-project-internal/src/pin_project/mod.rs | 4 ++++ src/lib.rs | 10 +++++----- 7 files changed, 23 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8eae5cf4..e816f311 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Unreleased +# 0.4.0-alpha.6 - 2019-09-01 + +* [Allowed using `#[pin_project]` type with private field types][53] + +[53]: https://github.com/taiki-e/pin-project/pull/53 + # 0.4.0-alpha.5 - 2019-08-24 * [`#[project]` attribute now supports `match` expressions at the position of the initializer expression of `let` expressions.][51] diff --git a/Cargo.toml b/Cargo.toml index 63bb23a6..bff18e58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pin-project" -version = "0.4.0-alpha.5" +version = "0.4.0-alpha.6" authors = ["Taiki Endo "] edition = "2018" license = "Apache-2.0/MIT" @@ -24,7 +24,7 @@ project_attr = ["pin-project-internal/project_attr"] renamed = ["pin-project-internal/renamed"] [dependencies] -pin-project-internal = { version = "=0.4.0-alpha.5", path = "pin-project-internal", default-features = false } +pin-project-internal = { version = "=0.4.0-alpha.6", path = "pin-project-internal", default-features = false } [dev-dependencies] compiletest = { version = "0.3.21", package = "compiletest_rs", features = ["stable", "tmp"] } diff --git a/README.md b/README.md index 95059b93..2c34e048 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Add this to your `Cargo.toml`: ```toml [dependencies] -pin-project = "0.4.0-alpha.5" +pin-project = "0.4.0-alpha.6" ``` The current pin-project requires Rust 1.33 or later. @@ -58,7 +58,7 @@ impl Foo { [Code like this will be generated](doc/struct-example-1.md) -[`pin_project`]: https://docs.rs/pin-project/0.4.0-alpha.5/pin_project/attr.pin_project.html +[`pin_project`]: https://docs.rs/pin-project/0.4.0-alpha.6/pin_project/attr.pin_project.html ## License diff --git a/pin-project-internal/Cargo.toml b/pin-project-internal/Cargo.toml index 36f32898..13a7b22e 100644 --- a/pin-project-internal/Cargo.toml +++ b/pin-project-internal/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pin-project-internal" -version = "0.4.0-alpha.5" +version = "0.4.0-alpha.6" authors = ["Taiki Endo "] edition = "2018" license = "Apache-2.0/MIT" @@ -34,7 +34,7 @@ serde = { version = "1.0.97", optional = true } lazy_static = { version = "1.3", optional = true } [dev-dependencies] -pin-project = { version = "0.4.0-alpha", path = ".." } +pin-project = { version = "0.4.0-alpha.6", path = ".." } [build-dependencies] rustc_version = "0.2.3" diff --git a/pin-project-internal/src/lib.rs b/pin-project-internal/src/lib.rs index 48b519ae..886280ae 100644 --- a/pin-project-internal/src/lib.rs +++ b/pin-project-internal/src/lib.rs @@ -1,7 +1,7 @@ //! An interal crate to support pin_project - **do not use directly** #![recursion_limit = "256"] -#![doc(html_root_url = "https://docs.rs/pin-project-internal/0.4.0-alpha.5")] +#![doc(html_root_url = "https://docs.rs/pin-project-internal/0.4.0-alpha.6")] #![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))] #![warn(unsafe_code)] #![warn(rust_2018_idioms, unreachable_pub)] @@ -285,7 +285,7 @@ use syn::parse::Nothing; /// /// [`Pin::as_mut`]: core::pin::Pin::as_mut /// [`drop`]: Drop::drop -/// [`UnsafeUnpin`]: https://docs.rs/pin-project/0.4.0-alpha.5/pin_project/trait.UnsafeUnpin.html +/// [`UnsafeUnpin`]: https://docs.rs/pin-project/0.4.0-alpha.6/pin_project/trait.UnsafeUnpin.html /// [`project`]: ./attr.project.html /// [`pinned_drop`]: ./attr.pinned_drop.html #[proc_macro_attribute] diff --git a/pin-project-internal/src/pin_project/mod.rs b/pin-project-internal/src/pin_project/mod.rs index d70ebeb3..4c543f4d 100644 --- a/pin-project-internal/src/pin_project/mod.rs +++ b/pin-project-internal/src/pin_project/mod.rs @@ -228,6 +228,10 @@ impl Context { // '__UnpinStruct' type must also be public. However, we take // steps to ensure that the user can never actually reference // this 'public' type. These steps are described below + /// A struct generated by pin-project to provide an appropriate + /// `Unpin` implementation, this type's `Unpin` implementation + /// uses exactly the same conditions as the original type's + /// `Unpin` implementation. #vis struct #struct_ident #full_generics #where_clause { __pin_project_use_generics: #always_unpin_ident <(#(#type_params),*)>, diff --git a/src/lib.rs b/src/lib.rs index fba95916..4c88c4d9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -80,12 +80,12 @@ //! //! See [`pin_project`] attribute for more details. //! -//! [`pin_project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.5/pin_project_internal/attr.pin_project.html -//! [`pinned_drop`]: https://docs.rs/pin-project-internal/0.4.0-alpha.5/pin_project_internal/attr.pinned_drop.html -//! [`project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.5/pin_project_internal/attr.project.html +//! [`pin_project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.6/pin_project_internal/attr.pin_project.html +//! [`pinned_drop`]: https://docs.rs/pin-project-internal/0.4.0-alpha.6/pin_project_internal/attr.pinned_drop.html +//! [`project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.6/pin_project_internal/attr.project.html #![recursion_limit = "256"] -#![doc(html_root_url = "https://docs.rs/pin-project/0.4.0-alpha.5")] +#![doc(html_root_url = "https://docs.rs/pin-project/0.4.0-alpha.6")] #![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))] #![no_std] #![warn(unsafe_code)] @@ -157,7 +157,7 @@ pub use pin_project_internal::project; /// ``` /// /// [`PhantomPinned`]: core::marker::PhantomPinned -/// [`pin_project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.5/pin_project_internal/attr.pin_project.html +/// [`pin_project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.6/pin_project_internal/attr.pin_project.html #[allow(unsafe_code)] pub unsafe trait UnsafeUnpin {}