Skip to content

Commit

Permalink
Merge #56
Browse files Browse the repository at this point in the history
56: Release 0.4.0-alpha.6 r=taiki-e a=taiki-e



Co-authored-by: Taiki Endo <[email protected]>
  • Loading branch information
bors[bot] and taiki-e committed Sep 1, 2019
2 parents f4737ad + f653147 commit cce010f
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pin-project"
version = "0.4.0-alpha.5"
version = "0.4.0-alpha.6"
authors = ["Taiki Endo <[email protected]>"]
edition = "2018"
license = "Apache-2.0/MIT"
Expand All @@ -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"] }
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -58,7 +58,7 @@ impl<T, U> Foo<T, U> {

[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

Expand Down
4 changes: 2 additions & 2 deletions pin-project-internal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pin-project-internal"
version = "0.4.0-alpha.5"
version = "0.4.0-alpha.6"
authors = ["Taiki Endo <[email protected]>"]
edition = "2018"
license = "Apache-2.0/MIT"
Expand Down Expand Up @@ -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"
4 changes: 2 additions & 2 deletions pin-project-internal/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down Expand Up @@ -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]
Expand Down
4 changes: 4 additions & 0 deletions pin-project-internal/src/pin_project/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),*)>,

Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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 {}

Expand Down

0 comments on commit cce010f

Please sign in to comment.